#!/usr/bin/python a = 5 def func(b): global c c = a + b return c print func(4) print c