Python Programming - Functions - Discussion

Discussion Forum : Functions - General Questions (Q.No. 3)
3.
How do you pass a default value to a function parameter?
function(parameter:=default_value)
function(default_value=parameter)
function(parameter, default_value)
function(parameter=default_value)
Answer: Option
Explanation:
Default values for function parameters are assigned using the parameter=default_value syntax.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.