
def print_numbers(numbers):
    for n in numbers:
        print(n)

if random:
    numbers = 1
    print_numbers(numbers)
else:
    numbers = 1, 2, 3
    print_numbers(numbers)




def print_numbers(flag, numbers):
    if flag:
        for n in numbers:
            print(n)

if random:
    numbers = 1
    print_numbers(False, numbers)
else:
    numbers = 1, 2, 3
    print_numbers(True, numbers)




Modify example to emphasise importance of context.
Modify example to emphasise importance of context.

  
- def print_numbers(numbers):
+ def print_numbers(flag, numbers):
+     if flag:
-     for n in numbers:
+         for n in numbers:
-         print(n)
+             print(n)
  
  if random:
      numbers = 1
-     print_numbers(numbers)
+     print_numbers(False, numbers)
  else:
      numbers = 1, 2, 3
-     print_numbers(numbers)
+     print_numbers(True, numbers)
  
  
  
+ 
Modify example to emphasise importance of context.
## Code Before:

def print_numbers(numbers):
    for n in numbers:
        print(n)

if random:
    numbers = 1
    print_numbers(numbers)
else:
    numbers = 1, 2, 3
    print_numbers(numbers)



## Instruction:
Modify example to emphasise importance of context.
## Code After:

def print_numbers(flag, numbers):
    if flag:
        for n in numbers:
            print(n)

if random:
    numbers = 1
    print_numbers(False, numbers)
else:
    numbers = 1, 2, 3
    print_numbers(True, numbers)



