Ask your own question, for FREE!
MIT 6.189 A Gentle Introduction to Programming Using Python (OCW) 15 Online
OpenStudy (anonymous):

I'm a newbie and I can't figure out how to get my code copied from the editor into the terminal and have the program run. Any help? I'm on a Mac and using python 2.6.

OpenStudy (rsmith6559):

On a Mac, go to /Applications/Utilities and launch Terminal Assuming your program is on your Desktop, in Terminal type: python Desktop/yourProgram and your program will execute and output in Terminal. BTW, Macs have IDLE installed, just type "idle & " into a Terminal window.

OpenStudy (anonymous):

That doesn't seem to work. I am working in IDLE, and I keep getting syntax errors when I try to use your suggestions. I entered those suggestions into the terminal and I got syntax errors. Any advice?

OpenStudy (rsmith6559):

Since you're already in IDLE, to launch the terminal just go to the Run menu and select Python Shell I apologize for not explaining things in my previous post well. python Desktop/yourProgramName This will work if you just launch Apple's Terminal and your program is on the Desktop "idle & " Should NOT have the double quotes around it when you enter it into Terminal.

OpenStudy (anonymous):

Thank you! That works well, I appreciate the help.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!