Create a python code that defines a function that takes an argument . Call the function. Identify what code is the argument and what code is the parameter .Call the function three times with different kinds of arguments : a value , a variable , and an expression . Identify which kind of argument is which .
def Func(x):
print("\nType of argument = ",type(x))
print("Value of argument = ",x)
y = 1234
Func(y)
y = "ABCD"
Func(y)
y = 1.234
Func(y)
y = [10, 20, 30]
Func(y)
Comments
Leave a comment