10th Mar 2020, 7:17 PM
Дмитрий Васильев
Дмитрий Васильев - avatar
9 Respostas
+ 3
Hey Дмитрий Васильев you will have to import math to use its method
10th Mar 2020, 7:18 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 3
The math module is the one that contains the PI variable. The math module is not directly present in the present directory unless you import it directly. That's where the statement import math comes. Alternatively, you can cut some slack by copying this: pi = 3.1415926535
10th Mar 2020, 11:49 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
11th Mar 2020, 2:05 PM
Tanmay Gupta
Tanmay Gupta - avatar
+ 2
At the very top do: Import math or from math import pi
10th Mar 2020, 7:46 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 2
Whats the problem its working
11th Mar 2020, 4:31 PM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
+ 2
This is case sensitive So, you have to enter 'PI number' not 'pi number' or change in condition.
11th Mar 2020, 4:33 PM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
+ 2
Have you solved your problem
12th Mar 2020, 6:44 AM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
+ 2
Yes
12th Mar 2020, 7:24 AM
Дмитрий Васильев
Дмитрий Васильев - avatar
+ 1
I do not understand. Please explain in more detail
10th Mar 2020, 7:44 PM
Дмитрий Васильев
Дмитрий Васильев - avatar