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

Hello! I'm confused about how to get to the program that actually implements your code....I've just been typing stuff into the shell and having it spit it back out, but how do you write code then make it run? Thanks

OpenStudy (ankit042):

which language are you using?

OpenStudy (anonymous):

Python

OpenStudy (ankit042):

Ok...so you can start by opening a new file in you favorite file editor(vim, texmate, sublime., notepad etc) let us save this file and name it 'first.py' Now in this file you can write all your code and then to run this go to your shell and type python first.py Your code should run.

OpenStudy (anonymous):

okay.. i'm not exactly sure what file editor I have. I'm on a mac. If i've never downloaded one, would I have one anyway? Thank you so much by the way

OpenStudy (anonymous):

is TextEdit one?

OpenStudy (anonymous):

I remember in the lecture, the proff. said something like "push F5 to run code" or something like that...I think the program he was in was the Python Interpreter? So I redownloaded everything they said on the first page, but I still have the same stuff. I have IDLE, and something that won't seem to do anything called Python Launcher

OpenStudy (ankit042):

TextEdit should work. Actually I am not from the course. But your professor may be using some IDE. I have not used IDLE so no idea where you are stuck . A google search or visiting IDLE website might help you get started. Actually it is NOT necessary to use any IDE while coding. But using IDE makes your life easy :)

OpenStudy (anonymous):

Okay :) thank you so much! I'll try that!

OpenStudy (e.mccormick):

How to use IDLE: http://www.ai.uga.edu/mc/idle/ Or, a great IDE is PyScripter: http://code.google.com/p/pyscripter/ And there is a free version of a commercial IDE: http://wingware.com/downloads/wingide-101/4.1.13-1/binaries Any of those should get you going!

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!