Last active
February 27, 2020 21:46
-
-
Save ak-alam/2439f6bd31fae5f19fff11644364d996 to your computer and use it in GitHub Desktop.
01 Character Input (first exercise from practice python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""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("Enter your name: ") | |
age = int(input("Enter your age: ")) | |
turn_100 = (2020 + (100 - age)) | |
print("Your will turn 100 in year ",turn_100) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment