[root@cdh1 bin]# python
Python 2.6.6 (r266:84292, Feb 21 2013, 23:54:59)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print("hello world");
hello world
>>> exit
Use exit() or Ctrl-D (i.e. EOF) to exit
>>> exit;
Use exit() or Ctrl-D (i.e. EOF) to exit
>>> quit
Use quit() or Ctrl-D (i.e. EOF) to exit
>>> quit;
Use quit() or Ctrl-D (i.e. EOF) to exit
>>> q
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'q' is not defined
>>> help
Type help() for interactive help, or help(object) for help about object.
>>>
[root@cdh1 bin]# ctrl +d
Python 2.6.6 (r266:84292, Feb 21 2013, 23:54:59)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print("hello world");
hello world
>>> exit
Use exit() or Ctrl-D (i.e. EOF) to exit
>>> exit;
Use exit() or Ctrl-D (i.e. EOF) to exit
>>> quit
Use quit() or Ctrl-D (i.e. EOF) to exit
>>> quit;
Use quit() or Ctrl-D (i.e. EOF) to exit
>>> q
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'q' is not defined
>>> help
Type help() for interactive help, or help(object) for help about object.
>>>
[root@cdh1 bin]# ctrl +d