Answer to Question #162058 in Python for Theophilus

Question #162058

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


1
Expert's answer
2021-02-08T15:26:02-0500

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'

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

Kamal Hassan
21.11.21, 06:57

Very good

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS