Volume of a sphere

sample solution

import numpy as np
r = 5.0
v = (4/3) * np.pi * r**3
print(f"The volume of a sphere with radius {r} is {v:.3f}")