Mega Code Archive

 
Categories / Python / Tuple
 

List inside a tuple

T = (1, [2, 3], 4) T[1][0] = 'spam'                  # works print T