+ 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 Odpowiedź
+ 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