Created
May 23, 2016 19:31
-
-
Save demian711/de4b767c1beb8259d13bfb51f3849662 to your computer and use it in GitHub Desktop.
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
import datetime | |
now = datetime.datetime.now() | |
name = str(raw_input("name?: ")) | |
age = int(raw_input("age?: ")) | |
repeat = int(raw_input("How many times?: ")) | |
century = ((100 - age) + now.year) | |
message = "How are you %s? You are going to have a hundrer years on the year %d \n" % (name,century) | |
print message * repeat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment