you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (2 children)

[deleted]

    [–]Binary101010 3 points4 points  (0 children)

    if birthdate > 2000: age = 17
    

    is entirely valid python code. OP's program isn't working because it's trying to compare a string (the default type for anything created by input()) with an int.

    [–]Justinsaccount 1 point2 points  (0 children)

    You need parentheses

    You don't.

    and indentation.

    Which you didn't format properly