Jan-24-2018, 07:11 PM
(Jan-24-2018, 07:08 PM)j.crater Wrote: The two for loops are not same. The latter one is missing:
print(a)for block cannot be empty, that will always give errors.
I was simply printing the error message, I am not running two for loops. Oh I see what my error is, it is that I was trying to run the code line by line, and therefore by running the first line of the loops, it is like I tried to run an empty loop. Is there a way to run code line by line in Spyder, but such that the content of a loop will run along with the first line? That's how it works when using RStudio, for coding in R.