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 Types and Branching Comparing values

Artithaya Bachner
Artithaya Bachner
495 Points

Why is "Python" > "Chocolate", since Python is after Chocolate, shouldn't Chocolate be greater than Python?

I'm taking the quiz to comparing values right now, then "Python" > "Chocolate" came up with the option true & false, I clicked on false (since I thought chocolate is greater than python) but that turned out to be wrong and the right answer is true. So that makes Python is greater than Chocolate? Or am I just misunderstanding the code lol

1 Answer

Rick Gleitz
Rick Gleitz
47,876 Points

Hi Artithaya, Think of A-Z as on a number line 1-26. The letter c (3) would be less than p (16).

Hope this helps.