Can I get some help with my Python homework?
>1. ask the user for the length of the two sides of the triangle
>2. Calculate the hypotenuse using the math.hyp function
>3. Print the hypotenuse of the triangle with an appropriate message
All I really need is the equation for calculating the hypotenuse
You can't just google that?
Also how did you make it outta high school without knowing how to calculate the hypotenuse?
nvm got it
>>83711
>math.hyp function
>Python babbies actually need this
>>83928
Yeah, your own hand-rolled function is way better for readability than using the fucking standard library.
++, --, if() and goto is Turing complete, so using anything else means you're not a real programmer.
>>83937
Nice strawman kid.
>>83939
>completely refutes central point using reductio
>nice strawman
The whole point of programming is to solve the problem as succinctly as possible.
Reimplementing the standard library just to make more work for yourself is not "solving the problem as succinctly as possible".
>>83954
For someone who isn't gay, typing sqrt(x*x + y*y) isn't work at all. BTW interviewers dock points from people who make pointless "helper" functions.
>>83962
>BTW interviewers dock points from people who make pointless "helper" functions.
Sure they do.
Anyhoo, your point's moot, because it's in the standard library. Thus your 'pointless "helper" functions' argument applies to "sqrt(x*x + y*y)" not "math.hyp(x,y)".
It's your code that's weird unnecessary verbiage that the reader has to waste time on. It's your code that only ever appears in your program. It's your code that's wasting space and should never have been written in the first place.
You want points docked, reimplement the standard library instead of using it.