Fish tank volume
Sign in to test your solution.
# Fish tank volume problem
# -------------------------
# Subprograms
# -------------------------
def volume(length, width, height):
def litres_to_gallons(litres):
# -------------------------
# Main program
# -------------------------
length =
width =
height =
litres =
gallons =
print("A", length, "x", width, "x", height, "cm tank is", litres, "litres and", gallons, "imperial gallons.")
You can submit as many times as you like. Only your latest submission will be taken into account.
Sign in to test your solution.
Python sandbox
This window allows you to run Python code without installing a thing. The code you write here is not automatically submitted to Dodona.