বুলিয়ান
>>> a = True
>>> type(a)
<class 'bool'>
>>> 2 == 2
True
>>> 5<7
True
>>> 5>5
False
>>> 5+True
6
>>> 1.2 + True
2.2
>>> 7*False
0
>>> (5<7) == True
True
>>> 8 < 9 == True
FalseLast updated
Was this helpful?
>>> a = True
>>> type(a)
<class 'bool'>
>>> 2 == 2
True
>>> 5<7
True
>>> 5>5
False
>>> 5+True
6
>>> 1.2 + True
2.2
>>> 7*False
0
>>> (5<7) == True
True
>>> 8 < 9 == True
FalseLast updated
Was this helpful?
Was this helpful?