KnowledgeBoat Logo
|

Computer Science

math.sqrt(x) returns a ValueError if x is a negative number.

Python Modules

1 Like

Answer

True

Reason — The math.sqrt(x) function in Python returns a ValueError if x is a negative number because the square root of a negative number is not a real number.

Answered By

3 Likes


Related Questions