[Tutor] "Strange" behaviour of list comprehension

Mark Lawrence breamoreboy at yahoo.co.uk
Wed Feb 13 16:18:12 CET 2013


On 13/02/2013 14:17, Hugo Arts wrote:

>
> To be more precise, the comma at the end is part of a tuple (you can
> omit parentheses of a tuple in many cases).

Parantheses are not part of a tuple except in special cases, see 
http://docs.python.org/2/tutorial/datastructures.html#tuples-and-sequences

-- 
Cheers.

Mark Lawrence



More information about the Tutor mailing list