Assignment-2/testing_code/p1.py

7 lines
148 B
Python
Raw Normal View History

pi = 3.1415
r = 8.0
circle_area = pi * r * r
circle_circum = pi * 2 * r
sphere_vol = (4.0 / 3.0) * pi * r * r * r
sphere_surf_area = 4 * pi * r * r