Re: [Tutor] hypotenuse

2008-03-14 Thread Robert Childers
I have rewritten my "hypotenuse" program as follows:>>> #This program calculates the width and diagonal of a golden rectangle >>> print "Calculate the width and diagonal of a golden rectangle." Calculate the width and diagonal of a golden rectangle. >>> height = input ("Input height:") Input height

[Tutor] hypotenuse

2008-03-13 Thread Robert Childers
I am in an early lesson in "A Byte of Python." Instead of writing a program to find the area of a rectangle I thought it would be useful to write a program to determine the length of the diagonal of a "golden rectangle", which would of course equal the sq root of the sum of the squares of the widt