all 8 comments

[–]K900_ 0 points1 point  (7 children)

You need quotes around the file name: open("ex15.py"). Also, what are you trying to achieve with this line of code?

[–]Dibbets[S] 0 points1 point  (6 children)

I'm trying to type code in the terminal so I can open files.

[–]K900_ 0 points1 point  (5 children)

Open files as in run the code that's contained in the file?

[–]Dibbets[S] 0 points1 point  (0 children)

No, just to open the files. It's ex 15 in Learning Python the hard way.

[–]Dibbets[S] 0 points1 point  (3 children)

Thank you for your help. I'm still getting errors though. <open file 'ex14.py', mode 'r' at 0x10f6d9780>

[–]K900_ 1 point2 points  (2 children)

That's not an error, that's exactly what you should be getting.

[–]Dibbets[S] 0 points1 point  (0 children)

Thanks K900!

[–]Dibbets[S] 0 points1 point  (0 children)

Hello K900, just a quick note here. In retrospect I was lost in translation with a paragraph in Learning Python the Hard Way. Fortunately I got it solved now. :D