Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. a = 0
  2. b = 0
  3.  
  4. print "Global A is hier: %s" % a
  5. print "Global B is hier: %s" % b
  6.  
  7. def addupGlobalA():
  8. a += 1
  9.  
  10. def addupGlobalB():
  11. b += 1
  12.  
  13. addupGlobalA()
  14. addupGlobalB()
  15.  
  16. print "Global A is hier: %s" % a
  17. print "Global B is hier: %s" % b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement