Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python

Josh Keenan
Josh Keenan
19,437 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,437 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,158 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,158 Points

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