Skip to content

Instantly share code, notes, and snippets.

View benslv's full-sized avatar

Ben Silverman benslv

View GitHub Profile
@benslv
benslv / 1. Character Input.py
Created September 7, 2018 10:22
1. Character Input
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")