Adder ladder.py

Calculate the length of a ladder
Minor code refactoring

Import the math library before anything else