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 Comparison Challenge

Challenge exercise solution! Any feedback?

To share a workspace you will have to create a snapshot. Click the camera icon in the upper right corner, then 'Take Snapshot' then post the link created here.

My bad, of course it was my first snapshot :p

let me know if is right the new one please!

https://w.trhou.se/uqigg3y4sh

2 Answers

Steven Parker
Steven Parker
210,425 Points

You're close, but:

  • you need to do the more complex test (FizzBuzz) first or it won't ever be reached
  • the plain "else" at the end does not need (and should not have) a conditional expression
  • to be controlled by the "else", the "print" statement following it must be indented

I've already saw the solution and I understood what you mean Steven. The teacher made it more easy and the good thing is that I understand it haha. Now I really understand what you mean. Thanks!

Thanks a lot for your feedback! I was happy that the code runs, I’m gonna se the solution to see how the teacher does it and thanks for the advice and to take time to reply me 🤙