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.
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.
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?
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.
Thank you! That works well, I appreciate the help.
Join our real-time social learning platform and learn together with your friends!