0
Your friend sent you a message, however his keyboard is broken and types a # instead of a space. Replace all of the # charact
Help me out
7 Réponses
+ 4
Adeleke Abdul Rahmon ,
replace needs 2 arguments, separated by a comma. it does not work inplace, but returns the new string according the arguments:
... msg.replace("what_to_replace", "replacement")
+ 1
msg = input()
print(msg.replace("#"," "))
0
try using replace()
or split the string at the pound symbols and joins the resulting list with spaces
0
msg = input()
msg= msg.replace("#"",")
print (msg)
0
msg = input()
msg= msg.replace("#"",")
print (msg)
Help me check it
0
msg = input()
msg = msg.replace("#","")
print (msg
0
Correct have gotten it