Python — Different Ways to Call Function

How to call a function in Python?

Tony

--

Directly Function Call

This is the simplest and most intuitive way:

def test():
print("This is a test")test()

Use partial() Function

--

--