Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

tuples in python

  strs = ['ccc', 'aaaa', 'd', 'bb']  print sorted(strs, key=len)  ## ['d', 'bb', 'ccc', 'aaaa']
 #the list will be sorted by the length of each argument
Source by developers.google.com #
 
PREVIOUS NEXT
Tagged: #tuples #python
ADD COMMENT
Topic
Name
7+1 =