News for hackers. Stuff that matters.
Re:Learn Python in minutes by madelfio on Friday June 28, 2013 @04:36PM (#5960227)
You get a list if you do "object_a = [1, 2, 3]" and a tuple if you do "object_b = (1, 2, 3)". Then try "object_c = 1, 2, 3" and you'll also get the tuple.
Re:Learn Python in minutes by cben on Tuesday July 02, 2013 @06:37PM (#5981190)
You should also mention the 1-item case where the (optional in other cases) trailing comma is required to form a tuple: (1,)