#50BeginnerGetting Started· Input and Output
Hello World & Input/Output
Input format
`name`: the text typed for the name. `age_text`: the text typed for the age. `current_year`: an integer.
Output format
A single string, exactly as described.
Examples
Input: name = "Ada", age_text = "36", current_year = 2026
Output: "Hello, Ada! You were born in 1989 or 1990."
36 years before 2026 is 1990; if the birthday has not happened yet this year, it was 1989.
Input: name = " Grace ", age_text = "ten", current_year = 2026
Output: "Hello, Grace! I could not read your age."
The name is trimmed. "ten" is not made of digits, so the age cannot be read.
Constraints
- 0 <= len(name), len(age_text) <= 50
- 1900 <= current_year <= 2100
- A valid age has at most 3 digits
Study first
- #python
- #basics
- #io
- #f-strings
