Mushi

ex py

Sep 24th, 2020
801
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
RAW Paste Data