Find the Volume of Sphere in Python
r=float(input("Enter Radius :"))
pie=3.14
volume=(4.0/3.0)*pie*(r*r*r)
print("Volume of Sphere is : ",volume)Output :
Enter Radius : 10
Volume of Sphere is : 4186.666666666667Find the Volume of Sphere in Python
r=float(input("Enter Radius :"))
pie=3.14
volume=(4.0/3.0)*pie*(r*r*r)
print("Volume of Sphere is : ",volume)Output :
Enter Radius : 10
Volume of Sphere is : 4186.666666666667Count Upper Case and Lower Case Word in a string (Python) def string_test(s): d={"UPPER_CASE":0, "LOWER_CASE":...
0 comments:
Post a Comment
gurnoorsingh5974@gmail.com