<s>[INST] How to get week number in Python? How to find out what week number is this year on June 16th (wk24) with Python?  
 [/INST] datetime.date has a isocalendar() method, which returns a tuple containing the calendar week:
>>> datetime.date(2010, 6, 16).isocalendar()[1]
24

datetime.date.isocalendar() is an instance-method returning a tuple containing year, weeknumber and weekday in respective order for the given date instance.
 </s>