exercism.org/python/guidos-gorgeous-lasagna/HINTS.md
2024-03-24 18:37:22 +01:00

2.3 KiB

Hints

General

  • The Python Tutorial can be a great introduction.
  • [PEP 8][pep8] is the Python code style guide.
  • PEP 257 details Python docstring conventions.
  • Numbers in Python can be integers, floats, or complex.

1. Define expected bake time in minutes

2. Calculate remaining bake time in minutes

3. Calculate preparation time in minutes

  • You need to define a function with a single parameter representing the number of layers.
  • Use the mathematical operator for multiplication to multiply values.
  • You could define an extra constant for the time in minutes per layer rather than using a "magic number" in your code.
  • This function should return a value.

4. Calculate total elapsed cooking time (prep + bake) in minutes

5. Update the recipe with notes