subject

In pycharm, write a program that prompts the user for their name and age. your program should then tell the user the year they were born. here is a sample execution of the program what is your name? Amanda how old are you? 15. This is what I have so far but I can't get pycharm to tell me the year I was born. import datetime

name = input("What is your name? ")

age = input("How old are you? ")

year = datetime. datetime. now().year

print("Hello ' + name + ' you were born in " (year - age))

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 13:30
Font size, font style, and are all aspects of character formatting.
Answers: 2
question
Computers and Technology, 24.06.2019 00:20
The guy wire bd exerts on the telephone pole ac a force p directed along bd. knowing the p must have a 720-n component perpendicular to the pole ac, determine the magnitude of force p and its component along line ac.
Answers: 2
question
Computers and Technology, 24.06.2019 04:10
Write a program that reads a set of floating-point values. ask the user to enter the values, then print • the average of the values. • the smallest of the values. • the largest of the values. • the range, that is the difference between the smallest and largest. of course, you may only prompt for the values once.
Answers: 3
question
Computers and Technology, 24.06.2019 11:30
Convert 11001110(acdd notation) into decimal
Answers: 2
You know the right answer?
In pycharm, write a program that prompts the user for their name and age. your program should then t...
Questions
question
Mathematics, 20.05.2021 14:00
question
English, 20.05.2021 14:00
question
Mathematics, 20.05.2021 14:00
question
Mathematics, 20.05.2021 14:00
question
Mathematics, 20.05.2021 14:00
question
Mathematics, 20.05.2021 14:00
Questions on the website: 13722360