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.

  1. x = True 
  2. y = False 
  3. print(int(x)) 
  4. print(int(y)) 

Output :-

1

0

So the value of True will be 1 and False will be 0.

Comments

Popular posts from this blog

Proassignmenthelp index 27

check whether the given input is alphabet, number or alphanumeric in python

Programmingshark index 19