A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • one year ago

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?

  • This Question is Open
  1. e.mccormick
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

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

  2. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    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"

  3. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.