2
Contributors
6
Replies
7
Views
6 Years
Discussion Span
Last Post by pyTony
0

thanks however both references explain what they are im looking more for the program in python that says whether the input is true or false meaning is it a triplet or not. Example input is 5 12 13 7 24 25 1.5 2 2.5 1 1 2 39 80 89
output is true true false false true

0

Then you can use math.hypot, output is though (True, True, True, False, True) for your example, if you do not test first that values are all integers, so first check for that, then you get (True, True, False, False, True).

0

unfortunatly that method cant be used the requirment is if statements which im lost in

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.