Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 1
How can i iñput an integer?(so that the following code could work)
The question explain everything https://code.sololearn.com/c7lgDbPWKp06/?ref=app
1 Answer
+ 1
Do :
x = int(input("Number :"))
Then x becomes an integer. The int function is used to convert a string to an integer.