No products in the cart.

19. Write a program that asks …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

19. Write a program that asks the user to enter their name and age. Print a message addressed to the user that tells the user the year in which they will turn 100 years old.
  • 1 answers

Creative Chhavi 9 months, 3 weeks ago

name = input("Enter your name: ") # user input current_age = int(input("Enter your age: ")) # user input #calculating the 100th year, considering 2020 as the current year hundredth_year = 2020 + (100 - current_age) print(f'{name} will become 100 years old in the year {hundredth_year}.')
http://mycbseguide.com/examin8/

Related Questions

Define pretty printing.
  • 2 answers
what is palindrone
  • 2 answers
What is the machine leaning
  • 1 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App