Call your function with a local variable . Show what happens when you try to use that variable outside the function . Explain the results.
def fun(): x = 3 print(x)
it will produce an error
x is not defined
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment