What will be the output
def f1(x): global x x+=1 print(x) f1(15) print("hello") The code shown above will result in an error because ‘x’ is a global variable. Had it been a local variable, the output would be: 16
Correct Answer:
error
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Correct Answer:
error
need an explanation for this answer? contact us directly to get an explanation for this answer