Created
October 18, 2022 04:29
-
-
Save RaMSFT/59e6661baec70041b57984c979e99f1f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def i_hate_space(chr, stmt): | |
| result = stmt.replace(' ',chr) | |
| return result | |
| print(i_hate_space("H", "Hello welcome to my Blog")) | |
| print(i_hate_space("R", "python is fun")) | |
| print(i_hate_space("#", "hello world!")) | |
| print(i_hate_space("#", " ")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment