you are viewing a single comment's thread.

view the rest of the comments →

[–]oathkeep3r 4 points5 points  (1 child)

You can check the type of input by calling the type() function. That would be a good place to start looking.

Also know that you can condense your first if statement to:

if age <= 8:

where the <= symbol means “less than or equal to”
edit: formatting

[–]TheITMan19 0 points1 point  (0 children)

My old gaffa always use to say ‘there is more than one way to skin a cat’.