Stop learning alone!

Learn faster and stay on-track by joining this free class with other self-learners.

Register for MIT OpenCourseWare 6.00 Introduction to Computer Science and Programming now.

MIT OpenCourseWare 6.00 Introduction to Computer Science and Programming

Class length: 24 weeks. Start anytime.

Creator: duallain

Status: Established

Join this class!

ps0

Can anyone help on how to run a basic program? I downloaded python and I'm using the python shell. For assignment #1 I started by entering last = raw_input("enter your last name: ") the computer then responds "enter your last name: " I'm lost after this because if I press enter then the computer goes back to ">>>" in which I would type in the next line first = raw_input("enter your first name:") and the computer would respond "enter your first name: " etc... not quite sure how to actually run the program and for the computer to not respond immediately after I type a line. Sorry for the stupid question, totally new to this.

zoopo
1 year ago

Reply


I got it - you can't just open IDLE, after you open it you have to go to open new window where it gives you a blank sheet that doesn't execute things as soon as you press enter. Sorry for the dumb question.

zoopo
1 year ago

Reply

Yes, you're correct. In fact, what you're referring to as ">>>" is nothing more than the command prompt for the Python Shell, whereas the "blank sheet" in the new window is a text editor that supports Python syntax highlighting. If you want, you may write your code in your favorite text editor (note: forgo those text editors with auto-line completion for "page spillover") you like rather than the one provided by IDLE.

jcf139er
12 months ago

Reply

* Markdown Cheatsheet:

Link:
[clickable text](http://www.example.com)

New Paragraph:
Hit enter twice

Main heading:
# Main Heading Text

Sub-heading:
## Sub-heading Text

List:
* item 1
* item 2
* item 3

Italics:
*italicized text*

Bold:
**bold text**

YouTube:
URL (http://www.youtube.com/watch?v=Ui4AYPcRkYE) turns into embed code

Full Markdown reference