Open study

is now brainly

With Brainly you can:

  • Get homework help from millions of students and moderators
  • Learn how to solve problems with step-by-step explanations
  • Share your knowledge and earn points by helping other students
  • Learn anywhere, anytime with the Brainly app!

A community for students.

How do I run a program once I've written it? Is it with Python Console? If so, where do I find this console? I'm working on a PC. I think I've got ps0, just want to test it.

MIT 6.00 Intro Computer Science (OCW)
I got my questions answered at in under 10 minutes. Go to now for free help!
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly


Get your free account and access expert answers to this and thousands of other questions

If you're using IDLE(Python GUI), just hit F5 or choose Run Module from the Run tab, and call the function you want to test in python shell (just type its name with parameters).
If you haven't found IDLE yet, it's tucked away in the "idlelib" folder in "Lib", inside your Python folder. I'm using Windows, so mine was the Windows batch file called "idle". If there's a more obvious way to open it, I haven't found it. Once you do that, you can go into the File tab there and open a new window, where you can write and execute programs. You can run your program just as karim described.
I was frustrated with this at first too as they didn't seem to mention this detail in the lectures or I missed it. Slightly important detail.

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

You should be able to open a console and enter python /path/to/ You don't have to use IDLE to run a script.
Thanks everyone! Yeah, I'm pretty new. I didn't reallize I had to write programs in a new window. I thought I could write them in the shell. But now I'm a total pro and on to ps1! ;)
Whew, thanks for asking this Rachel! I came back here after about 50 minutes of reading the wiki to find out I need to open a new window and not run it in the console window! I am thinking this is a bad sign for me already lol
Well, I didn't. So you shouldn't worry about it either :)
Had the same probl ;) here's the code for my problem set 0: But when i run it after i saved as a new file, the last print statment runs so fast one can hardly say that it displays name and age so im not sure if i solve it or not..

Not the answer you are looking for?

Search for more explanations.

Ask your own question