Yes, you can do it. If you want to call all functions in the list with a “one liner” you can do the following:
results = [f() for f in options]
More Related Contents:
- How can I return two values from a function in Python?
- Apply function to each element of a list
- Function changes list values and not variable values in Python [duplicate]
- Python: return the index of the first element of a list which makes a passed function true
- Python passing list as argument
- How to apply a function to each sublist of a list in python?
- Check if all values in list are greater than a certain number
- Sort python list by function
- How to add numbers inside a variable? [closed]
- Python – Class.function().function()
- Remove all the elements that occur in one list from another
- Copying nested lists in Python
- Finding the average of a list
- How to get the original variable name of variable passed to a function
- Negative list index? [duplicate]
- python; modifying list inside a function
- Dynamic variable in Python [duplicate]
- Appending a dictionary to a list – I see a pointer like behavior
- Appending item to lists within a list comprehension
- Tuple unpacking order changes values assigned
- Reversing a list using slice notation
- Writing Python lists to columns in csv
- Python Class Based Decorator with parameters that can decorate a method or a function
- Why python’s list slicing doesn’t produce index out of bound error? [duplicate]
- Index all *except* one item in python
- How to convert a string with comma-delimited items to a list in Python?
- Converting list to *args when calling function [duplicate]
- How to create a custom decorator in Django?
- Find the min, max value in a list of tuples
- Python modules with submodules and functions