Q:

I didnt get a result like True or False,where did ı go wrong?

Question is: Write a program that takes three integers from the user. Then pass these three integers to a function findIfTriangle(). In this function test if those three
numbers can be a triangle. If yes, return and print True. If not, return and print False.
Function structure:boolean findIfTriangle(list)
num1 = int(input("put a number: "))
num2 = int(input("put a number: "))
num3 = int(input("put a number: "))

def findIfTriangle(n1,n2,n3):
    if (n1 + n2 < n3) or (n2+n3 < n1) or (n1 + n3 < n2):
        return True
    else:
        return False
    print(findIfTriangle(num1,num2,num3))

A:

In my opinion, you should try this:
num1 = int(input("put a number: "))
num2 = int(input("put a number: "))
num3 = int(input("put a number: "))

def findIfTriangle(n1,n2,n3):
    return (n1 + n2 > n3) and (n2 + n3 > n1) and (n1 + n3 > n2)

print(findIfTriangle(num1, num2, num3))

