Fish tank volume
Log in om je oplossingen te testen.
# 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.")
Je kunt zo vaak indienen als je wenst. Er wordt enkel rekening gehouden met je laatst ingediende oplossing.
Log in om je oplossingen te testen.
Python sandbox
In dit venster kan je Python-code uitvoeren zonder iets te moeten installeren. De code die je hier schrijft wordt niet automatisch ingediend in Dodona.