Skip to content

Instantly share code, notes, and snippets.

@JL-Cox
Created June 28, 2018 00:02
Show Gist options
  • Save JL-Cox/e32c078a4f1449cbd0636fec9314400d to your computer and use it in GitHub Desktop.
Save JL-Cox/e32c078a4f1449cbd0636fec9314400d to your computer and use it in GitHub Desktop.
CodeWarsKata_CenturyFromYear_06282018
def century(year):
if year % 100 == 0:
year = year // 100
else:
year = year // 100 + 1
return year
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment