I get big massive of data with sql request from database, and data i get stored in list of lists. Like this [['111', 'a-aa'], ['111', 'bbb'], ['111', 'ccc'], ['222', 'aaa'], ['222', 'bbb'], ['111', 'bbb']]. Then, using setdefault() method i filter list elements by number key: d = {} for x in a: ...
00:00 - 19:0019:00 - 00:00
00:00 - 19:0019:00 - 00:00