my_boolean = bool("Hello")
print(my_boolean)
When I run this code in python, the output is True.What is the reason?
my_boolean = bool("Hello")
print(my_boolean)
When I run this code in python, the output is True.What is the reason?
Because it checks if the string is empty: