On Fri, Dec 30, 2016 at 11:50 AM,  <einstein1...@gmail.com> wrote:
> Hello everyone,
> I am the new comer and learner of python.
> I have a doubt that when I type python and press enter it shows a prompt like
>>>>
> But why it is >>> ?
> Is there any special reason?
> Why it is not setted as @,& or any other special characters?

Because it's easy to recognize as a prompt, I would guess. You can
customize it by importing the 'sys' module and changing the values of
sys.ps1 and sys.ps2.

>>> import sys
>>> sys.ps1
'>>> '
>>> sys.ps2
'... '
>>> def foo():
...     pass
...
>>> sys.ps1 = 'EGGS '
EGGS sys.ps2 = 'BACON '
EGGS def foo():
BACON     pass
BACON
EGGS
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to