+ 1
How take a input only as integer in python?
input("integer")
4 Respostas
+ 5
try:
    a=int(input())
    print(a)
except:
    print("sorry sweetie, integers only")
+ 1
a = int(input())
print(a)
print(type(a))
0
doesn't wot
0
please check now
input("integer")