For i=0 to 5
I am expecting that in each for loop 'a' will be redefined and value will be refreshed.However that is not case. We observe that value of variable 'a' is retained in each for loop. However when function is called multiple times for each call value is refreshed.
Can anyone tell me why 'a' retains old value in for loop , as I would expect that it should get redefined.