+ 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

19th Nov 2021, 12:16 PM
Joudy Ramy
Joudy Ramy - avatar
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..
19th Nov 2021, 12:52 PM
Jayakrishna 🇮🇳
+ 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!
19th Nov 2021, 12:51 PM
Lothar
Lothar - avatar
+ 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.
19th Nov 2021, 12:19 PM
Ipang
+ 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.
19th Nov 2021, 12:27 PM
Joudy Ramy
Joudy Ramy - avatar
+ 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
19th Nov 2021, 1:30 PM
Joudy Ramy
Joudy Ramy - avatar