forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice lab2 > pythagorean
prev  |  next  |  chance

Given three integers, are they are a Pythagorean triple? That is, does the sum of squares of the first two equal the square of the third?

pythagorean(3, 4, 5) → True
pythagorean(4, 5, 6) → False
pythagorean(0, 1, 1) → True

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

def pythagorean(a, b, c):

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: 100

Copyright Nick Parlante 2017 - privacy