Advertisement
MatthewRock

Python_Closure2

Apr 9th, 2017
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. def counter_factory(counter):
  2.   def counter_increaser():
  3.     counter = counter + 1
  4.     return counter
  5.   return counter_increaser
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement