Skip to content

Instantly share code, notes, and snippets.

@dezostus
Created October 8, 2018 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dezostus/0cde6041fa323a7b01581b5558acebb7 to your computer and use it in GitHub Desktop.
Save dezostus/0cde6041fa323a7b01581b5558acebb7 to your computer and use it in GitHub Desktop.
PRACTICE PYTHON, Character Input
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