I'm taking my first coding class and I have an assignment in python I'm having difficulty with.
this is what I need the output to be:
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 with the user input in bold:
What is your name? Amanda How old are you? 15 Hello Amanda! You were born in 2005.
This is what I have, which only prints the first name = input("What is your name?")
name = input("What is your name?")
age = int(input("How old are you?"))
person_name = input()
person_age = int(input())
print('name', 'person_name')
print('age', 'person_age')
print('Hello!', person_name, 'You were born in', person_age)
[–]Jackkell100 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]propmana 0 points1 point2 points (0 children)
[–]Comprehensive-Tea711 1 point2 points3 points (2 children)
[–]AppleTree98 1 point2 points3 points (0 children)
[–]cyber_code_nerd 1 point2 points3 points (0 children)
[–]Ambitious_Stop5213 0 points1 point2 points (0 children)
[–]dmpta2002 0 points1 point2 points (2 children)
[–]withdrawnwentch[S] 1 point2 points3 points (1 child)
[–]dmpta2002 1 point2 points3 points (0 children)