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 ProgrammingClass length: 24 weeks. Start anytime. Creator: duallain Status: Established |
Join this class! |
|
ps0Can 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. 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. 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.
* Markdown Cheatsheet:
Link:
New Paragraph:
Main heading:
Sub-heading:
List:
Italics:
Bold:
YouTube:
|