Answer to Question #237078 in Python for Joel

Question #237078

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 .


1
Expert's answer
2021-09-14T06:35:10-0400
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)




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