0

Int input(python)

How do i ask for input receiving an int in pyhton?

16th Aug 2018, 6:55 PM
Guido Parlatore
Guido Parlatore - avatar
2 odpowiedzi
+ 3
x = int(input()) this way the input, which is always a string, will be converted to an integer and stored in the variable x.
16th Aug 2018, 6:59 PM
davy hermans
davy hermans - avatar
0
Thank you i inverted int and input in the line
16th Aug 2018, 7:02 PM
Guido Parlatore
Guido Parlatore - avatar