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 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
228,991 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 šŸ¤™