What is the output? python x = 5 def change(): x = 10 print(x, end=' ') change() print(x)
- 10 5
- 10 10
- 5 10
- 5 5
Answer
A) 10 5
Inside the function, x is a new local variable; the global x stays 5. SLO CS-11-C-06 · Application
Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise