Python program to enter any age and print the age after 10 year

python program example

Write a program in python to enter any age and print the age after 10 year?

-----------------------------------

age = int(input("What is your age? "))
print("After 10 years, you will be", age + 10, "years old")

-----------------------------------

Output-

What is your age? 33
After 10 years, you will be 43 years old

Post a Comment

0 Comments