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

 

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

Given a list of triangles, return a corresponding list of booleans (True or False) specifying whether they are right triangles. Each item in the list of triangles is a list of three side lengths for the triangle. For example, given a list of three triangles [[3,4,5], [12,5,13], [1,1,2]], the output would be [True, True, False]. Assume the side lengths are allowable for a triangle.


areRight([[3, 4, 5], [12, 5, 13], [1, 1, 2]]) → [True, True, False]
areRight([[4, 5, 3], [10, 24, 26]]) → [True, True]
areRight([[16, 12, 20]]) → [True]

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

def areRight(triangles):

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: 195 Post-solution available

Copyright Nick Parlante 2017 - privacy