On Sun, Mar 29, 2015 at 1:00 AM, Cameron Simpson <[email protected]> wrote:

> The former print:
>
>  print(a_list.sort())
>
> is printing the result of "a_list.sort()".
>
> Like most Python functions that operate on something (i.e. .sort, which
> sorts the list in place), the .sort method returns None. And that is
> printed.

Ah! I did not realize this. That makes sense now. Many thanks, Cameron!

boB
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to