Ask Question

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

+2
Answers (1)
  1. 10 August, 01:07
    0
    see explaination

    Explanation:

    def do_something_complicated ():

    raise NotImplementedError ()
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “In python: the function below isn't yet implmented; the author just put a pass statement so that the python interpreter doesn't complain ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers