id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

amgreyson@gmail.com algebra-1 > classifyTriangle
prev  |  next  |  chance

Given three allowable sides lengths of a triangle, return whether the triangle is "right," "obtuse," or "acute."


classifyTriangle(3, 4, 5) → 'right'
classifyTriangle(3, 4, 6) → 'obtuse'
classifyTriangle(3, 3, 4) → 'acute'

...Save, Compile, Run (ctrl-enter)

def classifyTriangle(s1, s2, s3):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 175 Post-solution available

Copyright Nick Parlante 2017 - privacy