True and False Value in Python

 True and False Value in Python 


it is known that True means and False means 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 and False will be 0.

Comments

Popular posts from this blog

Proassignmenthelp index 27

Proassignmenthelp index 28

Programmingshark index 19