Program for taking name and age from user and show them in which year they will move to 100 years


Program for taking name and age from user and show them in which year they will move to 100 years

Source code

print("Program for taking name and age from user and show them in which year they will move to 100 years")
from datetime import datetime

a = (input("Enter your Name = "))

print('Hello', a
      )
b = int(input("Enter your age = "))

c = int((100-b) + datetime.now().year)
print("You will turn to 100 years in = ", c )

Comments

Popular posts from this blog

Addition of two numbers in python