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 trialDaniel Holmes
2,765 Pointsneed help
need help with this question
All comparators, things like >=, <, and ==, give us back True or ________
[MOD: fixed formatting -cf]
2 Answers
Chris Freeman
Treehouse Moderator 68,454 PointsThe short answer is False
Alexander Davison
65,469 PointsThose compare strings. Example:
"hello" == "hello" # Returns "True"
"hello" == "hi" # Returns "False"
Sometimes they compare integers (numbers):
1 == 1 # True
1 > 2 # (The greater than operator) False
1 < 2 # (The less than operator) True
1 <= 1 # (The less than or equal to operator) True
1 >= 1 # (The more than or equal to operator) True
And you can also review the videos if you'd like to learn / review more. ~xela888
Chris Freeman
Treehouse Moderator 68,454 PointsChanged to answer.