Answer to Question #235715 in Python for Anaya Farhan

Question #235715

Create a function that takes an argument. Give the function parameter a unique name. Show what happens when you try to use that parameter name outside the function. Explain the results.


1
Expert's answer
2021-09-10T18:52:34-0400
def func(a):
    print(a)
a= 8
func(a)
#Using parameter outside the function works well without producing any error. 
#For example the func function will just output 8 without producing any error.

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