Add two asterisks ** before arguments if number of keyword arguments is not known.
def my_optionals(**subject):
print(“His language optional is “ + subject[“lang”])
my_optionals(math = “algebra”, lang = “French”)
Blogger, Engineer & Entrepreneur
Add two asterisks ** before arguments if number of keyword arguments is not known.
def my_optionals(**subject):
print(“His language optional is “ + subject[“lang”])
my_optionals(math = “algebra”, lang = “French”)
Facebook Comments