In the below code, when the inputs to a,b and c are 2,3 and 4 respectively,
a=input('Enter length of first side of triangle: ')
b=input('Enter length of second side of triangle: ')
c=input('Enter length of third side of triangle: ')
print((a+b)>c)
The output is
False
But if the inputs are changed to float (as depicted below),
a=float(input('Enter length of first side of triangle: '))
b=float(input('Enter length of second side of triangle: '))
c=float(input('Enter length of third side of triangle: '))
print((a+b)>c)
then the output is
True
Please explain why this is happening