English

What exception will be thrown in the following case? >>> import math >>> math .sqrt(– 4)

Advertisements
Advertisements

Question

What exception will be thrown in the following case?

>>> import math

>>> math .sqrt(– 4)

Options

  • Num Error

  • Value Error

  • Type Error

  • Sign Error

MCQ
Advertisements

Solution

Value Error

shaalaa.com
Syntax Errors in Python
  Is there an error in this question or solution?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×