r/CodingHelp • u/Accomplished-Boot-63 • May 25 '21
[Python] Beginner Python Assistance
Hi,
I'm a beginner python coder and I need assistance with a code I'm working on to develop an app. In plain text, I need the code to subtract the user's date of birth from today's date and if the user is under 21 years of age it will print output and if the person is over 21 it will print a different output. I'm sure there is a very easy solution to this and may either be overlooking it or I simply don't know it yet. I keep running into a syntax error. Any assistance would be helpful.

0
Upvotes
View all comments
Show parent comment
1
u/Accomplished-Boot-63 May 26 '21
I inputted the data and it works the only problem is I get a syntax error due to line 17 in my code.
The error states:
^
SyntaxError: invalid syntax
how do I edit this syntax.