The document describes a program that asks the user to input their name and age. It then calculates the year they will turn 100 by subtracting their current age from 2014 and adding 100 to the result. Finally, it prints a message addressed to the user saying the year they will turn 100.
Original Description:
Original Title
Create a program that asks the user to enter their name and their age.docx
The document describes a program that asks the user to input their name and age. It then calculates the year they will turn 100 by subtracting their current age from 2014 and adding 100 to the result. Finally, it prints a message addressed to the user saying the year they will turn 100.
The document describes a program that asks the user to input their name and age. It then calculates the year they will turn 100 by subtracting their current age from 2014 and adding 100 to the result. Finally, it prints a message addressed to the user saying the year they will turn 100.
Create a program that asks the user to enter their name and their age.
Print out a message addressed to them that
tells them the year that they will turn 100 years old.
name = input("What is your name: ")
age = int(input("How old are you: ")) year = str((2014 - age)+100) print(name + " will be 100 years old in the year " + year)
Create a program that asks the user to enter their name and their age. Print out a message addressed to them that tells them the year that they will turn 100 years old.
Sample solution
name = input("What is your name: ")
age = int(input("How old are you: ")) year = str((2014 - age)+100) print(name + " will be 100 years old in the year " + year) view raw Exercise 1 hosted with ❤ by GitHub nnv