Define a function that takes an argument. Call the function. Identify what code is the argument and what code is the parameter.
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
Comments
Leave a comment