hi cs1018 -
To clarify, we had three people test this on our end with different versions of IDLE and operating systems (IDLE 3.6 on Windows, IDLE 3.6 on Mac, and Idle 3.3 on Windows) - and it worked for all of us. We're still not 100% sure what is causing this problem with the new code for some people but not others. Based on your comment and the comments from sciencenic in this thread:
viewtopic.php?f=30&t=18085, it appears to be something related to the print statements (and not the difference between tabs and spaces for indentation, as originally indicated in that thread), but it could also be different versions of IDLE (they're running 3.5 - although I'd find it surprising that the code works in 3.3, stops working in 3.5, and then works again in 3.6). If you could provide any additional information that could help us debug this further and get the code working for everyone, we would greatly appreciate it!
- What version of IDLE are you using?
- What error messages do you get on-screen when you try to run the original, unaltered code?
- Exactly what changes did you make to the program that allowed it to run?
Thanks!
Ben
*Update - had someone else test the code in 3.5 on Windows and it worked fine running from both IDLE and the command line. So, definitely interested in what error messages you are seeing.