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

I am working on problem set 0#. I am not sure if i am typing my commands in to the right program one only allows me to type one line at a time while the other is similar to note pad in that i can edit everything. this is what i have typed in and it is repeating the question twice? print raw_input('Enter your date of birth:') print raw_input('Enter your last name:') a = raw_input('Enter your last name:') b = raw_input('enter your date of birth:') print a,b

OpenStudy (anonymous):

When you write a program, you want to use the second, Notepad-like program. It gives you the opportunity to save your code. Your program is repeating the lines twice because, well, you have the same code written twice, heh. If you delete your first two lines, the code will do what you want.

OpenStudy (anonymous):

that's what I thought and i tried deleting the first two lines but then the program doesn't run at all,

OpenStudy (anonymous):

Also now I can no longer open python. two boxes pop up the first says that there is a Socket error: connection refused. the second says that it can't make a connection or my own firewall software is blocking it. I have checked my firewall and it is not blocking anything.

OpenStudy (anonymous):

What program are you using? IDLE?

OpenStudy (anonymous):

Of course that is the correct one right?

OpenStudy (anonymous):

Well, there are lots of IDEs that you can use. IDLE is just the one that comes with your Python download (I use IDLE too). I'm not sure what would be causing a socket error.

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!
Latest Questions
Jalissa21: What does adenoma mea?
33 minutes ago 2 Replies 0 Medals
Twilightt: How Can We Prevent Gun Violence in American Schools?
33 minutes ago 4 Replies 1 Medal
Twaylor: possible?
2 days ago 5 Replies 0 Medals
Arriyanalol: hekp
4 days ago 33 Replies 0 Medals
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!