Strange primitive type behavior in func | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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
1 Answer
- 1
t高房价并不稳定工作
29th Mar 2019, 5:24 PM
Geric
Geric - avatar