Computer Science, asked by bhawanasharmaa7, 5 hours ago

(c) X = 50 def func(x): print('x is', x) x = 2 print('Changed local x to', x) func(x) print('x is now',x​

Answers

Answered by suhani246868
5

Answer:

EXPLANATION: The global statement is used to declare that x is a global variable – hence, when we assign a value to x inside the function, that change is reflected when we use the value of x in the main block.

Similar questions