What is function parameter with example?

For example, if one defines a function as def f(x): … , then x is the parameter , and if it is called by a = …; f(a) then a is the argument. A parameter is an (unbound) variable, while the argument can be a literal or variable or more complex expression involving literals and variables.

Sizin İçin Seçtik  What is a function parameter quizlet?

Leave a Reply

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

What is function parameter with example?

For example, if one defines a function as def f(x): … , then x is the parameter , and if it is called by a = …; f(a) then a is the argument. A parameter is an (unbound) variable, while the argument can be a literal or variable or more complex expression involving literals and variables.

Sizin İçin Seçtik  What is default arguments in functions give example?

Leave a Reply

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