Source code for kyu_8.century_from_year.century

#  Created by Egor Kostan.
#  GitHub: https://github.com/ikostan
#  LinkedIn: https://www.linkedin.com/in/egor-kostan/


[docs]def century(year): """ Given a year, return the century it is in :param year: :return: """ if year % 100 == 0: return year // 100 return (year // 100) + 1