DevJourney · code I wrote while learning

volume-of-cube.py

141 B
s = float(input("Enter the length of side of the cube: "))
vol = s**3
print("The volume of a cube of side length {0} is {1}".format(s, vol))