0

Strange primitive type behavior in func

Hi, everyone! I have strange behavior of i-variable in function. Its scope limited in cycle "for", and 'i' is primitive type, but Its behavior is change for all funcs for each iterarion of cycle "for". And result is 10 for all functions of list. Why? I tried to find explanation on official documentation on Microsoft, but not finded, nothing https://code.sololearn.com/cKil7ghBuxTA/?ref=app

29th Mar 2019, 1:07 AM
ŠŠ»ŠµŠŗсŠ°Š½Š“р Š›ŠµŠ±ŠµŠ“ŠµŠ²
ŠŠ»ŠµŠŗсŠ°Š½Š“р Š›ŠµŠ±ŠµŠ“ŠµŠ² - avatar
2 Answers
- 1
t高ęˆæ价并äøēس定巄作
29th Mar 2019, 5:24 PM
Geric
Geric - avatar