+ 2
Is it possible to use > < symbols in boonlean function
greater or less than
2 odpowiedzi
+ 3
Boolean only knows true or false, the < and > operators are for arithmetic operations, for boolean the option is either equals (==) , not equal (!=) or NOT (!)
0
Yes you can use < or > with or without = but not together.
See comparison section.
https://docs.python.org/2/library/stdtypes.html