Advertisement
Mushi

ex py

Sep 24th, 2020
913
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. def checkCash(people):
  2.     cond = True
  3.     for person in people:
  4.         if person["cash"] < 10:
  5.             return False
  6.     return cond
  7.  
  8. print(checkCash([{"name": 'Amy', "cash": 20},{ "name": 'Diego', "cash": 100},{ "name": 'Igor', "cash": 1}]) == False)
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement