MCQs > IT & Programming > Python > Read the following code: def approx(x): if hasattr(x,'__and__'): return x & ~0x0FL try: return (round(x.real,2)+round(x.imag,2)*1j) exception AttributeError: return round(x,2) Which of the following lines is incorrect in the above code?

Python MCQs

Read the following code: def approx(x): if hasattr(x,'__and__'): return x & ~0x0FL try: return (round(x.real,2)+round(x.imag,2)*1j) exception AttributeError: return round(x,2) Which of the following lines is incorrect in the above code?

Answer

Correct Answer: exception AttributeError:

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it