Skip to content

Instantly share code, notes, and snippets.

@idoushiki
Created July 15, 2018 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save idoushiki/454765d3d67254059d69a319da6ed715 to your computer and use it in GitHub Desktop.
Save idoushiki/454765d3d67254059d69a319da6ed715 to your computer and use it in GitHub Desktop.
amount=0
def bread(menu,am):
global amount
amount=amount+am
msg=menu+str(amount)
print(msg)
bread("greentea",20)
bread("greentea",20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment