Skip to content

Instantly share code, notes, and snippets.

@daythatidie
Last active May 14, 2019 13:58
Show Gist options
  • Save daythatidie/c078e6c13e4e07abdef46d3f8079c97e to your computer and use it in GitHub Desktop.
Save daythatidie/c078e6c13e4e07abdef46d3f8079c97e to your computer and use it in GitHub Desktop.
Practicepython Exercise 1
# --------- Exercise 1
name = input('Enter your name: ')
age = int(input('Enter your age: '))
year = 2019 - age + 99
result = f'Hi, {name}! You will be 100 years old in {year} year.'
print(result)
number = int(input('Enter number'))
print((result +'\n') * number)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment