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

Josh Keenan
Josh Keenan
19,652 Points

Conditional value challenge and membership challenge [resolved]

WARNING

Don't create the age variable or time variable in either challenge, they are passed in and if you create them you start an infinite loop of failure. Just code the if statements.

Josh Keenan
Josh Keenan
19,652 Points

Edit: Similar problem on the next challenge as well, it wants the variable it is testing to be both true and false at the same time, impossible to pass! I wanted my badge and points :(!

2 Answers

Nathan Tallack
Nathan Tallack
22,159 Points

Take care not to set the age yourself. They will pass the age in for you. So take out the statement where you are setting the age and leave it set to None as it is when you start the challenge.

Nathan Tallack
Nathan Tallack
22,159 Points

Don't be so hard on yourself. I made the same mistake. TWICE!!! :P