Defining functions in python

Defining functions in python

def add(x,y):
    print(x+y)

This function adds 2 digit

  • x,y are the parameters

  • 'add' is the name of the function

  • def is the keyword to define a function

image.png

Hope you found my content informative

Follow for more Python content :)