0

This program raises "math is not defined error" How do I fix this error?

from math import sqrt print(math.sqrt(25)) #error statement

13th Aug 2020, 3:50 AM
Model Pilot
Model Pilot - avatar
3 Respuestas
+ 4
Or: from math import sqrt as sqrt print(sqrt(25))
13th Aug 2020, 3:56 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 6
import math x = math.isqrt(25) print(x) # no error statement
13th Aug 2020, 3:57 AM
BroFar
BroFar - avatar
+ 4
import math print(math.sqrt(25))
13th Aug 2020, 3:54 AM
Rik Wittkopp
Rik Wittkopp - avatar