[Edu-sig] Using IDLE with students

Richard Guenther heistooheavy at yahoo.com
Wed Aug 15 16:04:02 CEST 2007


Sorry if this is a bit simplistic:

When teaching Python to beginners and using IDLE, it seems that one of the dangers would be to have them assigning variables in the interactive mode and then maybe using them in a script they're writing.  Then, when they run the script, the variable is still in memory so the program works--for now.  

Or, as happened recently "raw_input" gets accidentally assigned to a string.  Then, any programs that end with "raw_input("Press Enter to exit this program")" will cause an error, even though the program script itself is fine.


Obviously quiting and reloading IDLE will take care of this, but I was wondering what else may trip up students using IDLE.  Maybe it would be nice if IDLE had an option called "Run fresh" that would clear any variables first....just musing here.

Thanks,
Richard





      ____________________________________________________________________________________
Shape Yahoo! in your own image.  Join our Network Research Panel today!   http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/edu-sig/attachments/20070815/d8dad1eb/attachment.htm 


More information about the Edu-sig mailing list