Загрузка данных


name = input('Insert your name: ')
while True:
    try:
        birth_year = int(input('Insert your birth year: '))
        while birth_year > 2026:
            birth_year = int(input('Insert your correct birth year: '))
            break
        break
    except ValueError:
        print('You need to write your birth year with numbers, like 1234!')

age = 2026 - birth_year
print('Your name: ', name, '\nYour age: ', age, 'years old')