from datetime import date dt=date.today() print(dt.isocalendar())
(2019, 38, 2)
from datetime import date dt=date(2019,12,31) print(dt.isocalendar())
(2020, 1, 2)
Post your comments , suggestion , error , requirements etc here