How can i iñput an integer?(so that the following code could work) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

13th May 2019, 5:28 AM
Ajay Nair
Ajay Nair - avatar
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.
13th May 2019, 6:26 AM
Théophile
Théophile - avatar