0
radius = float(input())
print('Enter the radius:', radius)
pi = 3.1415
volume = (4 / 3) * pi * radius * radius * radius
print('The volume is ', volume)

From this the expected value is

Enter the radius: 10.0 The volume is 4188.666666666667

However, I get the volume as 4188.666666666666

How do I fix this?

0 Answers0