All source code available on github
def value(x): def increment_by(y): return x+y return increment_by increment10 = value(10) print increment10(5) increment45 = value(45) print increment45(5)
Output:
15 50
def value(x): def increment_by(y): return x+y return increment_by increment10 = value(10) print increment10(5) increment45 = value(45) print increment45(5)
15 50
0 comments:
Post a Comment