Gibbs
0
Q:

if boolean python

#Example I found:

my_boolean = 1
print(bool(my_boolean))

my_boolean = 0
print(bool(my_boolean))

my_boolean = 10
print(bool(my_boolean))

print("Coding" == "fun")
0
checker = None 

if some_decision:
    checker = True

if checker:
    # some stuff
-1
RandomBool = True
# and now how can I check this in an if statement? Like the following:
if RandomBool == True:
    #DoYourThing
-1

New to Communities?

Join the community