Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #bool([object]) is a built-in function that is avaible at any time.
- #If x = True, and bool(x) will print True. Else if x = false print false
- #Remember that 1 = True and 0 = False
- flag1 = True
- flag2 = 1
- flag3 = 0
- x = bool(flag1)
- y = bool(flag2)
- z = bool(flag3)
- print(x, y ,z)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement