Answered step by step
Verified Expert Solution
Question
1 Approved Answer
how do you download the program? name = input('What is your name? ') age = int(input('How old are you? ')) from datetime import datetime current_year
how do you download the program?
name = input('What is your name? ') age = int(input('How old are you? ')) from datetime import datetime current_year = datetime.now().year birth_year = current_year - age print(f'Hello, {name}! You were born in {birth_year}.') print('Hello')
(D >_ _virtualenv.py 1 2 3 4 5 6 7 8 9 PP python Project1 Version control Run activate_this.py name = input('What is your name? ) 10 11 birth_year = current_year age 12 13 14 15 age = int(input('How old are you? ')) from datetime import datetime current_year = datetime.now() .year print('Hello') D Unnamed x print (f'Hello, {name}! You were born in {birth_year}.') .py x pythonProiect1 > .veny > Scripts > .DV Unnamed U ot C:\Users\Angel\PycharmProjects\python Project1\.venv\Scripts\python.exe C:\Users\Angel\PycharmProjects\python Project1\.venv\Scripts\.py What is your name? 15:15 LF UTF-8 T Tab* Reader Mode Python 3.12 (pythonProiect1) 1 >>> m
Step by Step Solution
There are 3 Steps involved in it
Step: 1
It seems like youre trying to run a Python script to greet a user and calculate their birth year bas...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started