Computer Science, asked by dhamija5465, 9 months ago

Write a program using function to display a name in Python

Answers

Answered by Anonymous
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