+ 2

Is it possible to use > < symbols in boonlean function

greater or less than

22nd Aug 2018, 11:37 AM
karthick srinivasan
karthick srinivasan - avatar
2 Antworten
+ 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 (!)
22nd Aug 2018, 11:44 AM
Ipang
0
Yes you can use < or > with or without = but not together. See comparison section. https://docs.python.org/2/library/stdtypes.html
2nd Nov 2018, 7:11 AM
Ian Berry
Ian Berry - avatar