All Apple Macbooks come pre-loaded with Python. On Mac OSX, the Python interpreter is located at /usr/bin/python
You can enter the python prompt (denoted by >>>) by just typing 'python' in the terminal.
Also, in order to quit from the python interpreter (>>>) type quit() or press CTRL-D
Note that Python is case sensitive, so if you type QUIT or Quit instead of quit(), you would get the following error :
>>> Quit
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'Quit' is not defined
You can enter the python prompt (denoted by >>>) by just typing 'python' in the terminal.
Also, in order to quit from the python interpreter (>>>) type quit() or press CTRL-D
Note that Python is case sensitive, so if you type QUIT or Quit instead of quit(), you would get the following error :
>>> Quit
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'Quit' is not defined
No comments:
Post a Comment