There are many ways to iterate through a list of lists in Python, this one is nice for some cases: but when there is no need for indexing the following will work perfectly: Advertisements
A demo project for loop and recursion in Scratch. The functionality is the same but the implementation differs. Scratch allows recursive calls so “recursive stairs” is called inside the definition of “recursive stairs”.
Yesterday I had this code in hand: So I was thinking where these three lines should go maybe they should be in the sprite loop not in the script loop. But it is actually the same! That doesn’t happen often, usually these things matter!
Yesterday I had to read a very large file and take some data. Each run was around a minute. So I was losing a minute of my time for every TypeError :-). In the main loop I just added: to cut down the run time and debug.