You are testing a string value myAgefor a different string value '24', as opposed to integer values.
if myAge > ('24'):
print('You are old, ' + myName)
Must be
if int(myAge) > 24:
print('You are old, {}'.format(myName))
Python , , , . , , int(the_string)
>>> "2" > "1"
True
>>> "02" > "1"
False
>>> int("02") > int("1")
True
, , print('You are old, ' + myName) print('You are old, {}'.format(myName)). , +. docs. .