Question: python-spyder coding needed In geometry, the following rule is employed to determine whether a given triangle is right, acute or obtuse: C a b Acute

In geometry, the following rule is employed to determine whether a given triangle is right, acute or obtuse: C a b Acute triangle ifoca. Right triangle del.bi b Obtuse triangle Waba Where is the largest side length In this question, you are asked to write a program which determines whether a given triangle is a night, acute or obtuse triangle. Open Triangle Types.py and implement your code inside triangle_type(side 1, side2, side 3) function accordingly. You cannot use the built-in max function. As the final step: o If your triangle is acute, return 1. o If your triangle is right, return 2. If your triangle is obtuse, return 3. def triangle_type(sidei, side2, side3): IMPLEMENT THIS FUNCTION. Don't forget to have a return statement at the end!! return 10 11 12 13 14 15 16 17 18 19 def main(): You can test your implementation using the function calls here. These are here only to help you test your function. What matters is whether your triangle_type function is correct. result-triangle_type(3,4,5) #right #result-triangle_type(3,5,9) #obtuse #result-triangle_type(3,3,3) #acute print( result) 011 21 22 DO NOT EDIT BELOW THIS LINE if _name__main_': main() 28
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
