Answered step by step
Verified Expert Solution
Link Copied!

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')

image

(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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Algorithms questions

Question

Solve the integral:

Answered: 1 week ago

Question

What is meant by Non-programmed decision?

Answered: 1 week ago

Question

What are the different techniques used in decision making?

Answered: 1 week ago

Question

=+what is the probability that it came from line 1?

Answered: 1 week ago