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

 

amgreyson@gmail.com > classify
prev  |  next  |  chance

Given a list containing three lengths of a triangle, return whether the triangle is "right," "obtuse," or "acute." Parameter sides contains three allowable side lengths for a triangle.


classify([3, 4, 5]) → 'right'
classify([3, 4, 6]) → 'obtuse'
classify([3, 3, 4]) → 'acute'

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

def classify(sides):

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