Booleans are used for logic and control flow.
is_active = True
is_admin = False
print(is_active and is_admin) # False
print(is_active or is_admin) # True
print(not is_active)
Requirements:
Booleans are used for logic and control flow.
is_active = True
is_admin = False
print(is_active and is_admin) # False
print(is_active or is_admin) # True
print(not is_active)
Requirements:
Leave a Reply
You must be logged in to post a comment.