True and False Value in Python
True and False Value in Python
it is known that True means 1 and False means 0 but for better understanding we can do one practical and let’s see what output will come in Python.
- x = True
- y = False
- print(int(x))
- print(int(y))
Output :-
1
0
So the value of True will be 1 and False will be 0.
Comments
Post a Comment