Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. def A(x):
  2. ....
  3. return x > 2
  4.  
  5. def B(x):
  6. ....
  7. return x < 10
  8.  
  9. def C(x):
  10. ....
  11. return x > 5
  12.  
  13. list_of_functions = [A, B, C]
  14. result = [fun(x) for fun in list_of_functions]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement