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.
message = input("Enter message: ")
for i in message:
if i == "#":
message = message.replace(i," ")
print(message)
Comments
Leave a comment