100_year = date.today().year - age + 100 ^ SyntaxError: invalid decimal literal I'm trying to understand what the problem is.
12 Answers
Python identifiers can not start with a number.
The 'arrow' points to year because underscore is a valid thousands separator in Python >= 3.6, so 100_000 is a valid integer literal.
Sadly in python you cant make variables that start with numbers so therefore you could use something like this:
hundred_year = date.today().year - age + 100 0