python

John Hunter jdhunter at ace.bsd.uchicago.edu
Wed Jan 21 22:59:33 EST 2004


>>>>> "Jess" == Jess Martin <trickster121990 at hotmail.com> writes:

    Jess> i need help.  im just learning to program and every time i
    Jess> try to do a command more than a line long it wont work

You probably need to terminate the partial command with a slash '\',
as in

>>> x = 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + \
... 2 + 2 + 2
>>>
>>> x
22

JDH




More information about the Python-list mailing list