1234567891011121314def spam(): global eggs # this is the global eggs = 'spam'def bacon(): eggs = 'bacon' # this is a localdef ham(): print(eggs) # this is the globaleggs = 42 # this is the globalspam()print(eggs)XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX