def input_age(): age = int(input("年齢を入力して下さい:")) return age age = input_age() print(f"あなたは来年{age+1}歳です!") # プログラム10-18(翌年の年齢 ③:エラー処理なし)