Convert tuple to a list and sort them : Tuple toList « Tuple « Python






Convert tuple to a list and sort them

Convert tuple to a list and sort them

T = ('cc', 'aa', 'dd', 'bb')

tmp = list(T)

tmp.sort()

print tmp

           
       








Related examples in the same category

1.Tuple inside a list and reference tuple elementTuple inside a list and reference tuple element