# - compatibility with Python 3 from __future__ import print_function # print('me') instead of print 'me' from __future__ import division # 1/2 == 0.5, not 0 my_var = 3 def my_first_func(): # my_func can 'see' the global variable print('I see "my_var" = ', my_var, ' from "my_first_func"') my_first_func() def my_second_func(): a = 10 print('I see "a" = ', a, 'from "my_second_func"') my_second_func() a