# Create a dictionary filled with several foods from "World Chef", and the # Amount of time it takes to make each one. Then print all the food options. # Ask the user what they would like to order, and according to their reply, # tell them how much time it will take to make their dish. foods_+_times = { "california maki": { "cook time": "1 hour", "ingredients": ["avocado", "rice", "salmon"], }, "pasta carbonara": { "cook time": "2 hours", "ingredients": ["fresh pasta", "ham", "cream"], }, "crépe": { "cook time": "1 hour", "ingredients": ["flour", "butter" "eggs", "ham"], }, "biryani": { "cook time": "3 hours", "ingredients": ["saffron", "grilled chicken", "rice", "greens"], }, "brucetta": { "cook time": "10 minutes", "ingredients": ["bun", "tomato"], }, "ham pizza": { "cook time": "1 hour", "ingredients": ["cheese", "dough", "tomato sauce", "ham"], }, }
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question