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

0

whats wrong with enter a nummber

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

4/19/2018 8:01:38 PM

Ronan

3 Answers

New Answer

+7

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

0

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

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