Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 14 Online
OpenStudy (anonymous):

Hi, I’ve got MAC OSX, Maverick 10.9, with Python 2.7 downloaded. The Python folder contains a few application files: Build Applet Idle Python Launcher I’ve just watched Recitation 1 video: intro to coding concepts. It seems that there is a window - an editor window where I enter code, which then shows the results in the Idle window. Where do I find the editor window?

OpenStudy (e.mccormick):

Open idle. Then open a new window. Nice overview of lots of stuff: https://hkn.eecs.berkeley.edu/~dyoo/python/idle_intro/

OpenStudy (anonymous):

I use an external editor, sublime to write my code. Save it as a xxxx.py.Then to compile it I open terminal navigate to the folder with my file, and (as an example) run python calculateinterest.py. If I want to see the return value of a function I simple add print(function_name(3)) to the bottom of the file.

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!