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

I am currently taking the 2011 course, but am having a bit of trouble running the code on a python 2.x version shell, everytime I run the code from the lectures it automatically opens up the shell from python 3.4. At first none of the codes worked until I began adding parenthesis on all the print statements, but I also ran into issues with the raw_input function, the code only worked when I used the just the input function? Is anyone having any such issues?

OpenStudy (e.mccormick):

If you have python 3.4 as the default, then you may need the proper path to run the 2.x stuff.

OpenStudy (anonymous):

If you have python 2.x installed but not in your $PATH then you can still run the problems in that shell by running them like this, "python27 program.py"

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!
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!