How to Create Functions That Return a Boolean Value in Python


In this example, we will learn how to create functions that return a Boolean Value in Python.

Source Code

def my_function():
    return True

print(my_function())

Output:

True
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments