Login and get codingIn this Bite you are provided with a list of publish dates of all our PyBites blog posts. They are in this format: Thu, 04 May 2017 20:46:00 +0200.
Write a function called
convert_to_datetime
that takes a date string and convert it to adatetime
object. You can leave the timezone part (e.g. +0200) off.Secondly complete the
get_month_most_posts
function: it should take a list ofdatetime
objects and return the month that we posted the most. You should get 2017-01. See also the TESTS tab how your code will be tested.Have fun and let us know how you experienced this Bite. Have fun!
286 out of 289 users completed this Bite.
Will you be the 287th person to crack this Bite?
Resolution time: ~47 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 4.09 on a 1-10 difficulty scale.
» Up for a challenge? 💪