How to input an integer data type as a user playing a game? I have tried many things but they don't work. I have tried inputing numbers but they still are strings not integers.

1

There are 1 best solutions below

0
On BEST ANSWER

In python3 use:

x = int(input(3))

and in python2 use:

input(3)