Created
October 8, 2018 12:21
-
-
Save dezostus/0cde6041fa323a7b01581b5558acebb7 to your computer and use it in GitHub Desktop.
PRACTICE PYTHON, Character Input
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 | |
name = input('your name: ') | |
age = int(input('current age: ')) | |
num = int(input('any number: ')) | |
now = datetime.datetime.now() | |
future = now.year - age + 100 | |
print('Name ', name) | |
print('You will be 100 year old in ', future, 'year') | |
for n in range(1,num+1): | |
print('this repeat', n, 'time') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment