Quick actions

cmd+k|ctrl+k

Navigation

Languages

Age-Calculator

Snippet info

Language

Python

Visibility

public

Author

narutouzumakiramen18

Created

2026-05-03T05:33:12.114667Z

Updated

2026-05-03T05:33:12.114667Z

# Age Calculator

birth_year = input("Enter your birth year:")
current_year = 2026
cal = current_year - int(birth_year)

print(f"Your age is {cal}")

# The editor might throw a EOFerror this occurs while reading a line - 
# The program is asking for a input but something is restricting, mostly online editors restrict
# to solve this use input tab that is at the bottom besides output to input the value.
INFO