A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • 5 years ago

Should I use Python 2 or 3 for this course? I'm on a Mac...

  • This Question is Closed
  1. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    2.x is what is used in the lectures. I would go with 2.7.

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

    yup 2.7

  3. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Ok, thank you. Next question...I installed Python and IDLE and all I get is a syntax error when trying to do the very basic commands at the beginning of the readings - what am I doing wrong???

  4. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    We would need examples to help u. Also if you installed 3.x then some commands from lectures may or may not work.

  5. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I did 2.7 first and typed print "Hello world" and got a syntax error, also got a syntax error when entering print 3+2 ... I was entering it in IDLE, where it looks like what the information shows, but obviously, I'm doing something wrong!

  6. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    And nevermind, I got it with the 32 bit Python 2.7! Thanks so much for the help, I'm sure I'll have lots of questions along the way! Will there be people to answer questions during the early summer as well?

  7. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    During summer I will probably be on here a lot like almost everyday so I will be able to help you most likely

  8. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Awesome, thank you so much, Onyx! :)

  9. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Yeah no problem later I'm getting off

  10. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I'd go with python 3.x, there's substantial improvements, yet the language feels pretty much the same so you won't have trouble understanding python 2.x syntax The biggest change is that print is no longer a statement: you have to write print("bonjour") instead of print "bonjour"

  11. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Yeah there are only small changes but when your taking a course which uses 2.x syntax it is sometimes confusing to have to change things.

  12. 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.