Python ProgrammingPython Programming

How to get week number of specific date in Python?

import datetime

print(datetime.date(2020, 5, 15).isocalendar()[1])
Output
20