Ace school

with brainly

  • Get help from millions of students
  • Learn from experts with step-by-step explanations
  • Level-up by helping others

A community for students.

When trying to run the lecture code from lecture 3, I continue to get a syntax error on each section. I am using Python 3.3.3 and IDLE on a Mac. Any ideas?

MIT 6.00 Intro Computer Science (OCW)
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
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.

Join Brainly to access

this expert answer

SIGN UP FOR FREE
With more searching, I found that the demo code is not compatible with Python version 3.0 and higher.
I experienced errors with 3.3.3. The course notes suggest using an earlier version, so I downloaded 2.7.6. on my mac and it has worked well so far. I'm not at lecture 3 yet, so I can't speak directly to your problem, but I would start with using 2.7.6. The newer version has some different rules and (i think) keywords that can mess you up.
the code won't work with 3.3.3 you must get 2.7.6 if you want to follow the code from the lecture. If you're using 3.3.3 it has some changes like print is a function...for example: print("Hello, World!")

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

Not the answer you are looking for?

Search for more explanations.

Ask your own question