whats wrong with enter a nummber | Sololearn: Learn to code for FREE!


whats wrong with enter a nummber

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

4/19/2018 8:01:38 PM


3 Answers

New Answer


Try this: number = int(input("Enter a number: "))


To complete the Jan Markus answer, remove the space before ( and the text between brackets is a String, so between double quotes.


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: “))