whats wrong with enter a nummber | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

whats wrong with enter a nummber

>>> input (Enter a nummber) dose not make any sense please comment

19th Apr 2018, 8:01 PM
Ronan
2 Answers
0
To complete the Jan Markus answer, remove the space before ( and the text between brackets is a String, so between double quotes.
19th Apr 2018, 8:26 PM
jerome
0
Just remember to quote or double quote your strings, the program is assuming Enter A Number is a string variable, which you haven’t defined so it brings up a fatal error so, like Jan Markus said just try number = int(input(“Enter a number: “))
19th Apr 2018, 10:09 PM
James Pinder