Keyword Arguments

Share

Key, value pair arguments can be given to functions in python.

The order can be arbitrary.

def my_subjects(subject3, subject2, subject1):
print(“The first subject is “ + subject1)

my_subjects(subject1 = “English”, subject2 = “Kannada”, subject3 = “Hindi”)

Facebook Comments

Leave a Reply

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