Number of Arguments to a function

Share

A function must have as many arguments as defined. If the number of arguments is less or more it will give an error.

def name_function(firstname, lastname):
print(firstname + ” “ + lastname)

name_function(“Raj”, “Kumar”)

Facebook Comments

Leave a Reply

Your email address will not be published. Required fields are marked *