about | help | code help+videos | done | prefs |
Given a map of food keys and topping values, modify and return the map as follows: if the key "ice cream" is present, set its value to "cherry". In all cases, set the key "bread" to have the value "butter". topping1({"ice cream": "peanuts"}) → {"bread": "butter", "ice cream": "cherry"} topping1({}) → {"bread": "butter"} topping1({"pancake": "syrup"}) → {"bread": "butter", "pancake": "syrup"} ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 212
Copyright Nick Parlante 2017 - privacy