How to Call a Function in Python


In this example we will show how to call a function in Python.

Source Code

def my_function():
    print("Hello, Function!")

my_function()

Output:

Hello, Function!
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments