Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Basics (2015) Logic in Python Conditional Value

Jonathan Camacho
Jonathan Camacho
1,504 Points

"Bummer! invalid syntax (<string>, line 1)", how do I fix this?

I changed 'None' to 1 to see if I could get admitted to be True, but the error still remained. How do I fix the error?

conditions.py
admitted = 1
if age >= 13
    admitted = True
Steven Parker
Steven Parker
231,248 Points

That's not the issue.

And you already asked about this issue and I have answered you there.

But hey, it's much easier to read with the auto-formatting applied by the challenge. :wink:

You can delete this duplicate question.

1 Answer

igsm '
igsm '
10,440 Points

You have a syntax error. Perhaps, you have forgotten something? See documentation: https://docs.python.org/3.6/tutorial/controlflow.html

Steven Parker
Steven Parker
231,248 Points

igor sm — Jonathan won't be able to remove this redundant question if it has an answer. You'll need to remove your answer first.