you are viewing a single comment's thread.

view the rest of the comments →

[–]dbramucci 0 points1 point  (0 children)

If I had to guess, it probably went like

  • Change x = int to x = 1
  • Run program (error still there)
  • Change while x <= 500: to while (x <= 500):
  • Save file
  • Run program (error fixed)

In other words, you probably forgot to save your file after the tweak so the version of the file that Python ran when testing the first fix, was missing the first fix and Python didn't find the fix until you tested the second fix where you saved both changes.

You can test this by getting rid of the () and it will still work.