Skip to content

Instantly share code, notes, and snippets.

View losbaltica's full-sized avatar

losbaltica losbaltica

  • Bielsk Podlaski, Poland
View GitHub Profile
@losbaltica
losbaltica / 100y_check.py
Last active January 15, 2017 18:54
My first 'project' in python. Simple code to check at what year person will be 100 years old.
from datetime import date
name = (str(input("Enter your name: ")))
age = (int(input("Enter your age: ")))
current_year = int(date.today().year)
def count_age():
global magic
if age < 100: