Booleans


#1

Hi
I am new to Python coding but I have done some lessons where I was stuck with Booleans. All the lesson explains is that they are either true or false, but what happens if they are true or false, how do you use them in coding and to make conditions. I am sorry but that is not explained anywhere.I am good with everything else. Please help!!!
<


#2

we can make condition using the if keyword:

if True:
     print True
else: 
     print False

but its important to understand that booleans can be true or false, and that if condition evaluate to either True or False


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.