my_bool = True
str(my_bool) # Returns my_bool but as a string. (The word "True")
#-----How to print a bool------#
# Multi-line approach:
my_str = str(my_bool)
print(my_str)
# One-line approach:
print(str(my_bool))
print(10 > 9) #Output: True
print(10 == 9) #Output: False
print(10 < 9) #Output: False
isFoo = True // our bool variable
// now we use str() to cast bool to string
print('Value of isFoo is: ' + str(isFoo)) // Value of isFoo is: True
// common mistake just for example. Don't do that
print('Value of Foo is: ' + isFoo) // TypeError: can only concatenate str (not "bool") to str