Parameter and argument

Parameter and argument:
Some of the built-in functions we have seen require arguments. For example, when you call math.s in you pass a number as an argument. Some function takes more than one argument: math.pow takes two, the base and exponent.
Inside the function, the argument is assigned to a variable called parameters. Here is an example of a user-defined function that takes an argument:

def print_twice(bruce):
print bruce
prinr bruce

for example:
Translate »