DevJourney · code I wrote while learning

volcube.py

162 B
# Program to find the volume of a cube
s = int(input("Enter side length of cube : "))
vol = s**3
print("Volume of cube of side length {0} is {1}".format(s, vol))