Answer to Question #305639 in Python for gfggg

Question #305639

Your friend sent you a message, however his keyboard is broken and types a # instead of a space.


Replace all of the # characters in the given input with spaces and output the result.


1
Expert's answer
2022-03-03T12:02:49-0500
message = input("Enter message: ")
for i in message:
    if i == "#":
        message = message.replace(i," ")
print(message)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS