Created
July 14, 2018 14:25
-
-
Save solen003/e56eeeaa3d75b5fce44fe4073ad05af7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = int(input("Side a = ")) | |
b = int(input("Side b = ")) | |
c = int(input("Side c = ")) | |
sides = [] | |
sides.append(a) | |
sides.append(b) | |
sides.append(c) | |
sides.sort() | |
if sides[0] + sides[1] < sides[2]: | |
print("Triangle not possible") | |
else: | |
if a != b and b != c and a != c: | |
print("All sides different") | |
elif a == b and b == c: | |
print("All sides equal") | |
else: | |
print("Two sides equal") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment