Add new course

This commit is contained in:
AndrewTrieu
2023-01-08 18:43:01 +02:00
parent 75313f3f05
commit 6f5c7f67b4
49 changed files with 835669 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
def triangle(a, b, c):
if (a+b) > c and (a+c) > b and (b+c) > a:
return True
else:
return False
if __name__ == "__main__":
print(triangle(3, 5, 4)) # True
print(triangle(-1, 2, 3)) # False
print(triangle(5, 9, 14)) # False
print(triangle(30, 12, 29)) # True