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

what does this means?

<=

1 Answer

andren
andren
28,558 Points

<= is a combination of the "lesser than" and "equal" operator, as such it's refereed to as a "lesser than or equal to" operator.

In code it's used to check if something it lesser than or equal to something. For example a statement like this:

12 <= 12

Would be true, since 12 is lesser than or equal to 12. if you simply used a lesser than operator in the above example the result would be false, because 12 is not smaller than 12.