Advertisement
devsaider

get_century.py

Jan 27th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. import math
  2.  
  3. def get_century(year):
  4.     return math.trunc(year / 100) + (year % 100 != 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement