Should I use Python 2 or 3 for this course? I'm on a Mac...
MIT 6.00 Intro Computer Science (OCW)
Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
2.x is what is used in the lectures. I would go with 2.7.
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???
Not the answer you are looking for? Search for more explanations.
We would need examples to help u. Also if you installed 3.x then some commands from lectures may or may not work.
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!
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?
During summer I will probably be on here a lot like almost everyday so I will be able to help you most likely
Awesome, thank you so much, Onyx! :)
Yeah no problem later I'm getting off
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"
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.