[Solved] Comparison between str and int fails [duplicate]

[ad_1]

you need to convert the age to an integer
use

age = int(sys.stdin.readline())

that way the line you read from the input will be saved as an integer and will be of the right type to be compared to the integer 15

[ad_2]

solved Comparison between str and int fails [duplicate]