List inside a tuple : Tuple Element « Tuple « Python






List inside a tuple

List inside a tuple
T = (1, [2, 3], 4)

T[1][0] = 'spam'                  # works

print T



           
       








Related examples in the same category