QuestionQ97Verified/Functions and ExceptionsCopy linkReport a problemAsk AstroTutorSave questionWhich of these function headers is valid?Adef func(a=1, b=1, c=2):Bdef func(a=1, b=1, c=2, d):Cdef func(a=1, b):Ddef func(a=1, b, c=2):Show AnswerAnswerExplanationPython requires every required (non-default) parameter to precede parameters that have default values. A header in which all parameters have defaults is valid.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion