In pycharm, write a program that prompts the user for their name and age. your program should then tell
Question:
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))
Answers
Let's address the few mistakes in your code so far. First, age is of type string and year is of type int. You're trying to subtract an int by a string and that doesn't work. Also, you have inconsistent quotes "Hello '. You should always use the same type of quote. The (year - age)) isn't properly formatted into the print statement. There is no plus adding it.
Here's my working code:
import datetime
name = input("What is your name? ")
age = int(input("How old are you? "))
year = datetime.datetime.now().year
print("Hello " + name + " you were born in " + str((year - age)))
I just fixed your code. Best of luck.
dn
Explanation:
First of all, im a girl. Second, names are personal info. People should not share their names online.
HaRiEb AlLsAcK
Explanation:
(uwu) ^^
Here are the translations
1. What time is it?
¿Que hora es?
2. What is your name?
¿Que es tu nombre?
3. Manuela and Ana are siblings.
Manuela y Ana son hermanos
Hope this helps
Answer by
Fishylikeswater
Ignore them or you can slap them
Explanation:
Works with my sibilings and sometimes I just scream at them WHAT!!
But that doesn't always work and if not then CUT THEM OFF PERIO
Hope this helps : )
import datetime
name = input("What is your name? ")
age = int(input("How old are you? "))
year = datetime.datetime.today().year
print("Hello {}! You were born in {}.".format(name, year - age))
I hope this helps!
Is this supposed to be a question?
Many of his family members passed away, and he saw his future slipping away, but he would not let it.
Explanation:
In the next lyrics he says how he is going to accomplish much more and not throw away his shot.
btw the musical ends with hamilton throwing away his shot and burr not waiting for it like what the heck lol
Que hora es?
Que es tu nombre?
Manuela y Ana son hermanas.