OpenStudy (anonymous):

okay,so i just started 6.00 and in UNIT 1,core elements of a program,there is a problem set 0 that I am supposed to complete and I am ashamed because i have no idea what to do,so I need help.

3 years ago
OpenStudy (anonymous):

Maybe a link to the problem?

3 years ago
OpenStudy (anonymous):

I would help, but never done much with python, sorry.

3 years ago
OpenStudy (anonymous):

Can you post what you have tried so far? Also, do you have python installed on your system?

3 years ago
OpenStudy (anonymous):

For this problem, you'll need to know how to use the print operation and the raw_input function (see https://docs.python.org/2/index.html) for details.

3 years ago
OpenStudy (anonymous):

To begin, what version of python are you using? 2 or 3? There are some minor differences (I'm no python expert, I'm just learning too), but the print function does differ between the two.

3 years ago
OpenStudy (rsmith6559):

The differences between Python 2 and 3 are enough to drive a student crazy. The MIT 6.00 course 2010 and earlier is definitely Python 2. You don't have to worry about which subversion (2.5.4 vs. 2.7.6), but the v2 vs. v3 is important.

3 years ago
OpenStudy (anonymous):

I knew that the course was in Python 2, but I was just asking so that I could try to provide some efficient feedback. I'm currently using Python 3, but am attempting to complete this course from MIT as well.

3 years ago
OpenStudy (anonymous):

I'm going to guess that you have the shell running. I'll also take a guess that your question is not about what you're coding yet. To get started, run the shell then goto File => New Window, this will open a text editor where you can start to program. I only point this out because it took me a second to work out what I was doing. You can't write a program in the shell, although when you do a run a program it'll run in the shell. So, now you have a screen to put your program in. You will need to use the commands raw_input and print. If you are not sure how to use these commands, google search, you'll finds heaps of info and examples.

3 years ago
OpenStudy (anonymous):

As much as this community is here to help one another, it is important that we do not spoon feed one another. With that said, Walking_Stick's question still stands, "Please show us what you've tried thus far?" So that we can be able to point you in the right direction.

3 years ago
OpenStudy (anonymous):

Basically you just need to put it to steps that you do one at a time and then find out the commands to do each of these steps. 1. Create variable for question for last name 2. Create variable for question for first name 3. Print variable for question for last name (print) 4. Log answer as variable for answer for last name (raw input) 5. Print variable for question for first name (print) 6. Log answer as variable for answer for first name (raw input) 7. Print answer for first name variable 8. Print answer for last name variable I do not want to elaborate more or I just need to write the whole code here. The basic idea is though to just put it into many small steps and then just proceed one command at a time.

3 years ago
OpenStudy (anonymous):

i would recommend doing all the lessons leading up to that problem before you actually start it so its like problem set 0 is due during lecture 2 so do it after the recitation which will give you all of the info you need to complete and problem set 1 is due during lecture 4 so do it after the recitation that is there that way you have all the knowledge you need to do it and to start a new file you just want to click on file new file like you would do on any word processor etc. and then when you save it just save it as a .py file

3 years ago
Similar Questions: