3 ms·
Another way to get the “dynamic” scoping answer is to ignore functions as well as scoping and just guess based on reading too down. Eg the last line says print(
by dan-robertson 6y ago
Another way to get the “dynamic” scoping answer is to ignore functions as well as scoping and just guess based on reading too down. Eg the last line says print(a), first the program wrote a=10 then it wrote a=15, so I guess a=15. In the next example you see print(d), look up and see d+3, make a guess as to what that means and look up again and see d=5, so guess d=8.