This file contains 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
inpName = str(input("What is your name? ")) | |
inpAge = int(input("How old are you? ")) | |
currentYear = 2018 | |
print("Hello "+inpName+"! You will turn 100 in "+str(currentYear + (100 - inpAge))+".") | |
inpNumber = int(input("Please give another number! ")) | |
for i in range(inpNumber): | |
print("Hello " + inpName + "! You will turn 100 in " + str(currentYear + (100 - inpAge)) + ".\n") |
NewerOlder