+ 1
What’s the problem
msg=input() print (msg.lower()) It says line 2 invalid character in identifier https://sololearn.com/coach/1538/?ref=app
5 Respuestas
+ 2
#It works .. check again..
msg=input()
print(msg.lower())
#or just
print(input().lower())
#If you copied from web source,then it may have invisible charecters.., may cause errors..
+ 6
Joudy Ramy ,
can you please link your original code from playground here? the code you have posted here is working fine. you can omit the parenthesis around input().
thanks!
+ 1
Remove the '#' from beginning of the lines. A line that begins with a '#' are considered comments and will not be processed as code.
P.S. No need for str() for input()
input() returns a string anyways.
(Edit)
Snippet had been modified from its origin.
+ 1
Ipang The hashtags are not in the original code , i am aware that of what hashtags can do, it still doesn’t work. Thanks fo answeing.
+ 1
Jayakrishna🇮🇳 Thank so much it worked when i copy paster your amswer for some reason and i did not get it form a web source. But i am solving on a phone , idk if that may cause a problem