If I enter any value less than 24, it does print the \"You will be old...\" statement. If I enter any value greater than 24 (ONLY up to 99), it prints the \"you are old\" st
The string '100' is indeed less than the string '24', because '1' is "alphabetically" smaller than '2'. You need to compare numbers.
'100'
'24'
'1'
'2'
my_age = int(input()) if my_age > 24: