interesting def


Interesting  ~

>>> i =5
>>>
>>> def f(arg=i):
print(arg)

>>> i =7
>>> f()

guess what number??

the result is 5


Comments

Popular posts from this blog

Project euler 169 found clue

Floyd-Warshall's algorithm