0

Someone should please correct me

num = input("how old are you?:") print(num + " years is your age") if num < 18: print("not allowed")

2nd Aug 2019, 10:17 PM
George Junior
George Junior - avatar
4 Answers
+ 1
num = int(input(" enter your age: ")) print(str(num) + " years is your age") if num < 18: print("not allowed")
2nd Aug 2019, 11:52 PM
Misanthrope
Misanthrope - avatar
0
But 1-17 is an integer...right??
3rd Aug 2019, 7:46 AM
George Junior
George Junior - avatar