Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 24 Online
OpenStudy (anonymous):

Does anyone know if the syntax is slightly different in python 3.4? Is an older version what is used in the class? For instance print x doesn't work, instead only print(x) does

OpenStudy (anonymous):

The syntax is mostly the same, but maybe of the libraries work differently.

OpenStudy (hari5719):

ya its the same like wio said

OpenStudy (anonymous):

Yes, the class uses 2.5.4. 3.x does have slight differences, such as the print syntax you encountered.

OpenStudy (rsmith6559):

Python 3 is considerably different than Python 2. I wouldn't recommend doing your class in Python 3. I wouldn't worry too much about which version of Python 2 you use, but 3 will cause you unneeded pain.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!