How Long Will You Live (HLWYL) is a short and simple quiz I made using Python and general statistics on tobacco and alcohol.
Repl Link: https://replit.com/@Doomsdaybear/How-Long-Will-You-Live?v=1
Collaborators: None
How Long Will You Live (HLWYL) is a short and simple quiz I made using Python and general statistics on tobacco and alcohol.
Repl Link: https://replit.com/@Doomsdaybear/How-Long-Will-You-Live?v=1
Collaborators: None
You used age = input("")
. You have to put int()
around the input otherwise you get TypeError: unsupported operand type(s) for -: 'int' and 'str'
So it should be:
age = int(input())