Question #162058

 Define a function that takes an argument. Call the function. Identify what code is the argument and what code is the parameter.


Expert's answer

Here the answer:

def greeting(name): # 'name' is a paramenter
   print('parameter "name" equal', name)
   print('Hello,', name, '!')


greeting('Stan') # call function 'greeting' with argument 'name'='Stan'
LATEST TUTORIALS
APPROVED BY CLIENTS