Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python apply a function to a list inplace

>>> mylis = ['this is test', 'another test']
>>> [item.upper() for item in mylis]
['THIS IS TEST', 'ANOTHER TEST']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #apply #function #list #inplace
ADD COMMENT
Topic
Name
2+7 =