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


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

solved Comparison between str and int fails [duplicate]