How do I apply a function to the list of variable inputs? For e.g. the filter function returns true values but not the actual output of the function.
filter
Or, alternatively, you can take a list comprehension approach:
>>> mylis = ['this is test', 'another test'] >>> [item.upper() for item in mylis] ['THIS IS TEST', 'ANOTHER TEST']