a = input('a= ')
b = input('b= ')
c = input('c= ')
print(c<(a+b))
print(b<(a+c))
print(a<(b+c))
print (a)
print (b)
print (c)
while not(c<(a+b) and b<(a+c) and a<(b+c)):
print('not a triangle.')
a = input('a= ')
b = input('b= ')
c = input('c= ')
print('Loaded triangle a= {0}, b= {1}, c= {2}.'.format(a,b,c))
This is supposed to be a simple program for checking whether 3 sides make a triangle or not. But even the individual checks don't word (3,4,5), and some random combinations work (5,5,5)