Python Forum
More than or less than
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
More than or less than
#3
In both Pythons 2 & 3, the convenient shortcut notation:  

a<x<b
works great. That is, the expression returns TRUE if x is greater than a and less than b.
Reply


Messages In This Thread
More than or less than - by Splodge_123 - Jun-11-2017, 07:31 PM
RE: More than or less than - by buran - Jun-11-2017, 07:50 PM
RE: More than or less than - by rrashkin - Jun-12-2017, 04:53 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020