Skip to content

Instantly share code, notes, and snippets.

Avatar
🎀

Bev bukandu1

🎀
  • Baltimore, MD
View GitHub Profile
@bukandu1
bukandu1 / main.py
Last active Jul 8, 2019
HB_PreWork_ScribbleAndNotes created by BeverlyUkandu - https://repl.it/@BeverlyUkandu/HBPreWorkScribbleAndNotes
View main.py
def add_fruit(inventory, fruit, quantity=0):
return
# Make these tests work...
new_inventory = {}
add_fruit(new_inventory, "strawberries", 10)
test("strawberries" in new_inventory)
test(new_inventory["strawberries"] == 10)
add_fruit(new_inventory, "strawberries", 25)
test(new_inventory["strawberries"] == 35)