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.


Expert's answer

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!

LATEST TUTORIALS
APPROVED BY CLIENTS