Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Errors when using Spyder
#3
(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.
Reply


Messages In This Thread
Errors when using Spyder - by xcnidaria - Jan-24-2018, 07:04 PM
RE: Errors when using Spyder - by j.crater - Jan-24-2018, 07:09 PM
RE: Errors when using Spyder - by xcnidaria - Jan-24-2018, 07:11 PM
RE: Errors when using Spyder - by j.crater - Jan-24-2018, 07:13 PM
RE: Errors when using Spyder - by xcnidaria - Jan-24-2018, 07:14 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020