0

How to import pie from maths ?

I have tried so many times but I always got error. Plz help

31st Oct 2019, 9:18 AM
GAURAV KUMAR
GAURAV KUMAR - avatar
1 Réponse
+ 4
Pi? You mean, 3.1415... ? from math import pi print(pi) # 3.14159... a = pi + 10 b = pi + 5 print(a-b) # (3.14 + 10) - (3.14 + 5) = 5.0
31st Oct 2019, 9:53 AM
Asman-H
Asman-H - avatar