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

codefights smooth sailing ( CommonCharacterCount)

Bucket Sort in python