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 "potato" has a value, set that as the value for the key "fries". If the key "salad" has a value, set that as the value for the key "spinach". topping3({"potato": "ketchup"}) → {"potato": "ketchup", "fries": "ketchup"} topping3({"potato": "butter"}) → {"potato": "butter", "fries": "butter"} topping3({"salad": "oil", "potato": "ketchup"}) → {"spinach": "oil", "salad": "oil", "potato": "ketchup", "fries": "ketchup"} ...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: 218
Copyright Nick Parlante 2017 - privacy