Group Logs by Hour with dict.setdefault — Python For Makers | zuzu.codes