Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def suma(a, b):
- return a + b
- def suma(ivan, ola):
- return ivan + ola
- x = 6
- y = 4
- z = suma(x, y)
- print(' - Apples ' + str(totalBrought(allGuests,
- 'apples')))
- totalBrought(allGuests, 'apples')
- def totalBrought(guests, item):
- numBrought = 0
- for k, v in guests.items():
- numBrought = numBrought + v.get(item, 0)
- return numBrought
Add Comment
Please, Sign In to add comment