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

Why must i ask for help with every single task?

I don't seem to understand this at all and don't even really know what I should be asking.

conditions.py
admitted = None
if age > 13:
    print("True")
Kevin Wehmueller
Kevin Wehmueller
10,116 Points

The task is asking you to run the code if age is greater than or equal to 13. Once you fix that operator, you have to reassign the "admitted" variable, not print "True".

How would I got about reassigning admitted? They have only showed me how to print with this function

3 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hey Jeffery,

Contrary to popular beliefs (and in my personal opinion), if you have zero coding experience coming in, Python is the worst to start with.

I would recommend at least completing the Digital Literacy Track and then moving on to the Front-End Development Track.

These together will give you the base needed to move on to whichever language you find passion with. I've been doing this for over a year now, am proficient in multiple languages, and I still can't deal with Python.

So, don't fret. Just start slow and Keep Coding! :)

:dizzy:

Thank you for the advise I'll switch courses as soon as I'm done steaming over feeling incompetent.

Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

No need to feel that way. :) I'm proficient in Front-End and many Back-end languages, but I still cannot grasp Python. I've just accepted the fact that Python and I will never be friends. :)

Kevin Wehmueller
Kevin Wehmueller
10,116 Points

Try the following:

admitted = None
if age >= 13:
    admitted = True
Tiffany Roberts
Tiffany Roberts
4,747 Points

Jeffrey, I'm glad you're posting, because I'm right there with ya! It's like I understand the videos and then they say, "Now you try it!" and then I don't even know where to start.