Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def checkCash(people):
- cond = True
- for person in people:
- if person["cash"] < 10:
- return False
- return cond
- print(checkCash([{"name": 'Amy', "cash": 20},{ "name": 'Diego', "cash": 100},{ "name": 'Igor', "cash": 1}]) == False)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement