DEV Community

yugalakshmi
yugalakshmi

Posted on

Functions in Python-2

  1. How to Call a Function?

To execute a function, we need to call it using its name.
def play():
print("Playing Cricket")

play()
Output:
Playing Cricket
play() is called a function call.

We can call the same function multiple times.
def welcome():
print("Welcome To Python")

welcome()
welcome()
welcome()

Output:
Welcome To Python
Welcome To Python
Welcome To Python

Top comments (0)