Answer to Question #181871 in Python for Asumang Ebenezer

Question #181871

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-04-15T16:36:08-0400
def my_function(fname):
  print(fname + " Smith")

my_function("Tom")
my_function("Jerry")
#Take note The terms parameter and argument can be used for the same thing: information that are passed into a function. So fname is the parameter or argument

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

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS