To change a global variable inside a function you must use:

  1. global
  2. local
  3. def
  4. return
Answer

A) global

The global statement allows assignment to a global variable. SLO CS-11-C-06

Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise