Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def A(x):
- ....
- return x > 2
- def B(x):
- ....
- return x < 10
- def C(x):
- ....
- return x > 5
- list_of_functions = [A, B, C]
- result = [fun(x) for fun in list_of_functions]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement