Answers for "apply function to all list elements python"

1

apply function to all list elements python

>>> from string import upper
>>> mylis=['this is test', 'another test']
>>> map(upper, mylis)
['THIS IS TEST', 'ANOTHER TEST']
Posted by: Guest on February-13-2020

Code answers related to "apply function to all list elements python"

Python Answers by Framework

Browse Popular Code Answers by Language