Advertisements
Advertisements
Question
Give an example of a function header which uses both.
Code Writing
Advertisements
Solution
def student_info(name, age, course="Computer Science"):
# 'name' and 'age' are positional parameters
# 'course' is a default parameter
shaalaa.com
Is there an error in this question or solution?
