Created
June 28, 2018 00:02
-
-
Save JL-Cox/e32c078a4f1449cbd0636fec9314400d to your computer and use it in GitHub Desktop.
CodeWarsKata_CenturyFromYear_06282018
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
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