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 trialmusab abdi
2,096 Pointsit seems this quiz are wrong
i mean lion> zebra is correct because L come before Z yet the excercise says the oppisite
1 Answer
Daniel Gauthier
15,000 PointsHey Musab,
The way letters get evaluated are whether they become before or after one another, so when looking at:
lion > zebra
The result will be false because the first letter of lion (l) comes before the first letter in zebra (z).
Meaning 'z' is greater than 'l' because it is 'higher' in the alphabet than 'l' is.
Assign a numerical value to each letter, with 'a' being 1 and 'z' being 26 and this will make more sense.
Good luck with the course!
musab abdi
2,096 Pointsmusab abdi
2,096 Pointsthank you deniel thank you