Write a program to to check if a triangle is valid or not, given it's all three sides' length


Topic: Write a program to to check if a triangle is valid or not, given it's all three sides' length

Solution

def is_valid_triangle_length(a, b c):
    if a>0 and b>0 and c>0:
        if a+b > c and a+c > b and b+c > a:
            return True
    return False



List all Python Programs