learning and experimenting python.
ian.g.kelly at gmail.com
Fri Dec 30 13:44:17 EST 2016
On Fri, Dec 30, 2016 at 11:50 AM, <einstein1410 at 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
>>> def foo():
>>> sys.ps1 = 'EGGS '
EGGS sys.ps2 = 'BACON '
EGGS def foo():
More information about the Python-list