Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

algotruneman

  • 2 years ago

Mechanical MOOC starting Nov. 26, 2012: Will it matter which version 2.7 or 3.2 we use? The "Think Like a Computer Scientist" docs seem to suggest 2.7 is the plan. I looked further. If we follow the outline of the MIT 6.189 course, it looks like the answer is "neither." That course intro says we are to use 2.6. I've been piddling around with 3.2 so I'll need to rework some skills, I guess. Anybody know for sure?

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

    there are some annoying differences between 2.x and 3.x - raw_input is gone in 3.x for example, and the tutorials, books largely assume 2.x. you can usually write code that works in both, although sometimes a little aggravating.

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

    Thanks, snark. I do hope that the next few prep weeks before the launch on the 26th will reveal the details for "our" version of the course.

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

    one of the changes that will come up most quickly is that the print function has changed slightly - in 2.6 and 2.7, you can call print x, but in 3.2 you call print(x). However, you can use the 3.2 syntax in earlier versions, but the directions and examples will look different.

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

    Thanks, thoughtcrimes, that gives me some hope that I can possibly continue to expand my skills within the course framework, while using 3.2. As it turns out, I do have both 2.7 and 3.2 installed. It does not look like 2.6 is available from the Kubuntu package manager. I think I'm ready to go.

  5. MOOC-E
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    Thanks all for jumping in here. @algotruneman, the course materials on the MIT site are written to 2.6, Codecademy is written to 2.7. You can learn with any version, but you have to be willing to translate the differences. We suggest 2.6 or 2.7.

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

    Since obviously 3.x is the future, I’m using 2.7, because it is basically a continuation of 2.x, but with a (limited) 3.x forward compatibility layer. e.g. I chose to use the 3.x preferred version to call `print()` and using `//` for integer division, since a) these are valid already in 2.x and b) are the only valid options in 3.x

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

    Thanks to all who have made an effort to calm my nerves. I appreciate the guidance about using 2.6/2.7 and 3.2.

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

    Search OpenStudy
    • Attachments:

Ask your own question

Ask a Question
Find more explanations on OpenStudy

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.