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 (2015) Logic in Python Review: Comparisons

Hello.

Hello, I tried a few answers (==, ==>) but I would still get the wrong answer. Could anyone explain to me what I am doing wrong. Oops sorry I forgot to paste it. Thank for notifying me For this question "Give a comparison that would be True for the following: 5"

Manish Giri
Manish Giri
16,266 Points

Maybe if you post the question, and the answer choices...

2 Answers

Valeshan Naidoo
Valeshan Naidoo
27,008 Points

So with comparisons, you need to think in your head, "greater than or equal to", or "less than or equal to" or "equal to", these comparisons have to be in that particular order too, i.e.

"greater than or equal to" is >=
"less than or equal to"  is <=
"equal to" is ==

Hope this helps.

AJ Salmon
AJ Salmon
5,675 Points

There are a few options for the answer. Five is greater than two, five is greater than or equal to two, or five is not equal to two. Any one of them is true! Just use the correct opperand for the statement (>, >=, !=).