#!/usr/local/bin/python3 #eggs = 15 def spam(): global chickens chickens = "it is a global" eggs = "local spam's eggs" bacon() print(eggs) def bacon(): ham = "local bacon's ham" eggs = "local bacon's eggs" print(eggs) spam() bacon() print(chickens) def spam(): #global eggs eggs = 'spam' print(eggs) eggs = 'global' spam() print(eggs)