summaryrefslogtreecommitdiff
path: root/progs/a348.py
blob: 8d1cbe46d8ca53a2c26544cb913a9b75b44f48d0 (plain)
1
2
3
4
5
def count_digs(tup):
  return sum([len(str(ele)) for ele in tup ]) 
def sort_list(test_list):
  test_list.sort(key = count_digs)
  return (str(test_list))