Write a program using function to display a name in Python
Answers
Answered by
1
Explanation:
from datetime import datetime.
from datetime import datetime.name = input('What is your name? \ n')
from datetime import datetime.name = input('What is your name? \ n')age = int(input('How old are you? \ n'))
from datetime import datetime.name = input('What is your name? \ n')age = int(input('How old are you? \ n'))hundred = int((100-age) + datetime. now(). year)
from datetime import datetime.name = input('What is your name? \ n')age = int(input('How old are you? \ n'))hundred = int((100-age) + datetime. now(). year)print ('Hello %s. You are %s years old. You will turn 100 years old in %s.' % (name, age, hundred))
Similar questions
English,
4 months ago
Social Sciences,
4 months ago
Math,
4 months ago
Hindi,
8 months ago
Biology,
8 months ago
Hindi,
11 months ago
India Languages,
11 months ago