12.7k views
3 votes
In python:

the function below isn't yet implmented; the author just put a pass statement so that the python interpreter doesn't complain when it parses this code. (the pass statement acts as an empty block.) this is bad. you want the program to crash (during testing) if it tries to execute a statement that hasn't been implemented. fix the code so that a notimplementederror exception is raised if the function gets executed.
student. py
1 - def do_something complicated():
2 pass

1 Answer

4 votes

Answer:

see explaination

Step-by-step explanation:

def do_something_complicated():

raise NotImplementedError()

User Cvacca
by
4.8k points