Guest User

Untitled

a guest
Dec 14th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. def suma(a, b):
  2. return a + b
  3.  
  4. def suma(ivan, ola):
  5. return ivan + ola
  6.  
  7. x = 6
  8. y = 4
  9. z = suma(x, y)
  10.  
  11. print(' - Apples ' + str(totalBrought(allGuests,
  12. 'apples')))
  13.  
  14. totalBrought(allGuests, 'apples')
  15.  
  16. def totalBrought(guests, item):
  17. numBrought = 0
  18. for k, v in guests.items():
  19. numBrought = numBrought + v.get(item, 0)
  20. return numBrought
Add Comment
Please, Sign In to add comment