Question #181871

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

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
LATEST TUTORIALS
APPROVED BY CLIENTS