Python Programming - Boolean Values | Problem Solving and Python Programming : Control Flow, Functions

Chapter: Problem Solving and Python Programming : Control Flow, Functions

Boolean Values

Boolean data type have two values. They are 0 and 1.

BOOLEAN VALUES:

 

Boolean:

v       Boolean data type have two values. They are 0 and 1.

v       0 represents False

v       1 represents True

v       True and False are keyword.

 

Example:

>>>  3==5

False

>>>  6==6

True

>>>  True+True 

2

>>>  False+True

1

>>>  False*True

0

 

Tags : Python Programming , Problem Solving and Python Programming : Control Flow, Functions
Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail
Problem Solving and Python Programming : Control Flow, Functions : Boolean Values | Python Programming


Privacy Policy, Terms and Conditions, DMCA Policy and Compliant

Copyright © 2018-2024 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.