Python Programming – John Zelle: Chapter 3 ex. 10

Write a program to determine the length of a ladder required to reach a given height when leaned against a house. The height and angle of the ladder are given as inputs.

Run =
This program to calculates the length of a ladder.
How high do you need the ladder to reach? 15
At what angle will the ladder be leaning against the house? 70
The length of ladder required is 15.962666587138683