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

im trying to download python for the course (introduction to computer science and programming) v2.5.4 however when i try to do the strings in the second lecture it does not provide the same outcome, ex: type (none), it gives me IDLE 1.2.4 >>> type (none) Traceback (most recent call last): File "", line 1, in type (none) NameError: name 'none' is not defined >>> anyone knows where to find the right version or what to do in the current version that i have

OpenStudy (e.mccormick):

none or None? https://docs.python.org/2/library/constants.html

OpenStudy (anonymous):

none if you have seen the lecture, the outcome is different

OpenStudy (e.mccormick):

You did not get the point. Even in 2.5.4 it was None, not none. Here are the docs: https://docs.python.org/release/2.5.4/lib/node8.html

OpenStudy (e.mccormick):

Here it is in 2.7.6: ``` Python 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. >>> type(none) Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> type(none) NameError: name 'none' is not defined >>> type(None) <type 'NoneType'> >>> ``` But the results should be the same in basically any version.

OpenStudy (anonymous):

oh ok , thnx

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!