Assignment-1/testing_code/p1.py

7 lines
148 B
Python

r = 8.0
pi = 3.1415
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