Guided Project: Hacker News - Troubleshooting - SOLVED

I’m trying to print a summary of the 5 hours of the day that have the highest average of comments per post. However, when running the code, I get an error message that I can’t use the strptime function because the hours in my list are not the right type. Help please!

I’m working on step 7 of 8 for the Hacker News Guided Project:

Exploring Hacker News Posts (1).ipynb (19.4 KB)

Click here to view the jupyter notebook file in a new tab

Can you please check the line where you are appending the swapped list?
How many square brackets do you really want there?

Awesome. That did the trick. Thank you!

Glad it worked. Please mark the thread as solved if there aren;t any more questions.