Is anyone else getting/got this error in the lasagna exercise :)
ImportError:
MISSING FUNCTION --> In your 'lasagna.py' file, we can not find or import the function named 'preparation_time_in_minutes()'.
Did you misname or forget to define it?
Is anyone else getting/got this error in the lasagna exercise :)
ImportError:
MISSING FUNCTION --> In your 'lasagna.py' file, we can not find or import the function named 'preparation_time_in_minutes()'.
Did you misname or forget to define it?
That error says your code doesn’t define the function preparation_time_in_minutes()
. You need to define that function to solve this exercise.
I don’t see that anywhere in the instructions. did I miss it?.
Yes. Third section of the instructions.
def preparation_time_in_minutes(num_of_layers):
"""Calculate the preparation time for lasagna.
:param num_of_layers: int - the number of layers in the lasagna.
:return: int - preparation time (in minutes).
Function that takes the number of layers in the lasagna as an argument
and returns the preparation time based on a simple logic.
"""
return num_of_layers * 2
MISSING FUNCTION --> In your 'lasagna.py' file, we can not find or import the function named 'elapsed_time_in_minutes()'.
Did you misname or forget to define it?
This is all I get
That error tells you that you’re missing a function, along with the function name.