When I've asked students about working with python, one of the feedbacks I received was how put python code in a file and run it.  They were already familiar with the interactive prompt, but didn't understand how to run code from a file.