boolean and python code example

Example 1: Which of the following is a Boolean in Python?

>>> type(True)
<class 'bool'>
>>> type(true)
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
NameError: name 'true' is not defined

Example 2: python bool()

# Returns the boolean value of the specified object
x = bool(1) # outputs True

Example 3: boolean python example

#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")