Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 182 Bytes

end-of-month-calculation.md

File metadata and controls

10 lines (8 loc) · 182 Bytes

End Of Month Calculation

import calendar

year = 2020
month = 4
_, eom = calendar.monthrange(year, month) # => 30
print(f'The last day of {month}/{year} is {eom}.')