
Task 0: Startup Corner 🧑🏻🍳
You're starting a new restaurant. Create a name for your own restaurant using the print() function. The output will be overlayed onto a predesigned logo for you. The new name will replace the words "Your Cafe" in the logo.
In all the challenges of this course, you'll be designing programs to handle the different functions and issues in your restaurant.
The command “print” is a function that tells the computer to display something on the output window, often an instruction or output. In our Google Colab notebooks, always type between the lines as instructed.
Once you’ve typed the command, hit the run button. The print() function is important because it shows the text output of your program.
Sample Code:
print("Your Cafe")
Task 1: Bake an Apple Pie 🥧
Question ID: 111T1As you're planning the opening, your staff wants to bake something for the opening day.
Task:
Use a print function to tell your kitchen to bake an apple pie.
Sample Code:
print("Let's bake something.")
Expected Output:
Your output should be exactly the same as the expected output.
Let's bake an apple pie.
Note:
The command “print” is a function that tells the computer to display something on the output window, often an instruction or output. In this case, the computer is asked to show the phrase “Let’s bake an apple pie”.
Task 2: Design Apple Pie Recipe 📋
Question ID: 112T1Your kitchen staff wants to know if you can ask your grandmother for her apple pie recipe.
Task:
- define a new function called bake_applepie that displays the recipe. “def bake_applepie” means we’re defining a function called “bake_applepie”.
- print the following directions
- call the function
Recipe:
- preheat the oven
- prepare the apples
- mix the ingredients
- bake the pie
Expected Output:
Your output should be exactly the same as the expected output.
Apple Pie Recipe: 1) preheat the oven 2) prepare the apples 3) mix the ingredients 4) bake the pie
Task 3: Survey Customers' Preferred Dish 🍲
Question ID: 113T1You're designing a feedback form to gather customer feedback on their preferred dish.
Task:
- Prompt the user to enter their preferred dim sum dish.
- Display a message thanking them for their input and mention the dish they specified. Use the input function.
Expected Output:
Your output should be exactly the same as the expected output.
Thank you for letting us know! We're glad you love our {favorite_dish}
Task 4: Create your own favorite recipe 🍜
Instructions:
- Create your own recipe by defining a new function and using the print function.
- Share it on Voyager community!