Tuple inside a list and reference tuple element : Tuple toList « Tuple « Python






Tuple inside a list and reference tuple element

Tuple inside a list and reference tuple element
L = ['abc', [(1, 2), ([3], 4)], 5]

print L[1]

print L[1][1]

print L[1][1][0]

print L[1][1][0][0]


           
       








Related examples in the same category

1.Convert tuple to a list and sort themConvert tuple to a list and sort them