livepython.net

31. Python Program to Print a Recipe From a Flowchart

EasyFlowcharts

Overview

Read a flowchart and turn it into code, one line per shape.

Problem Statement

Here is the flowchart, from top to bottom:

  1. Start
  2. Show: Lemon Tea Recipe
  3. Show: 1. Boil water
  4. Show: 2. Add tea leaves
  5. Show: 3. Add a slice of lemon
  6. Show: Enjoy!
  7. End

Write the program that follows it.

Input

No input is required for this question.

Output

Lemon Tea Recipe\

  1. Boil water\
  2. Add tea leaves\
  3. Add a slice of lemon
    Enjoy!
Learn this firstChapter 3 · Flowcharts for Beginners: Shapes, Symbols and Examples
solution.py
# write your code here

EXPECTED OUTPUT

1Lemon Tea Recipe
21. Boil water
32. Add tea leaves
43. Add a slice of lemon
5Enjoy!

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.