#!/bin/env python
# Default arguments
# From: https://docs.python.org/3/tutorial/controlflow.html#defining-functions
# NB: when evaluating a default argument, static scoping is used

i = 5
def f(arg=i):
  print (arg)

i = 6
f()

# this will print
#  5
