basic questions on cmp, < and sort

Hendrik van Rooyen mail at microcorp.co.za
Thu Oct 26 02:33:06 EDT 2006


 "Ben Finney" <bignose+hates-spam at benfinney.id.au> wrote:
To: <python-list at python.org>
Sent: Thursday, October 26, 2006 4:44 AM
Subject: Re: basic questions on cmp, < and sort


Schüle Daniel <uval at rz.uni-karlsruhe.de> writes:
8<-------------------------------------------
> third question
>
> sort([[1,2,3],["ABC"],['Z','A'], X(), 4)

    >>> sort([[1,2,3],["ABC"],['Z','A'], X(), 4)
      File "<stdin>", line 1
        sort([[1,2,3],["ABC"],['Z','A'], X(), 4)
                                               ^
    SyntaxError: invalid syntax

needs a closing  ']' to make the list a list.....

- Hendrik




More information about the Python-list mailing list