3 ms·
There's also the `setdefault` method you could use on ordinary dicts: -if day not in days: - days[day] = [] +days.setdefault(day, [])
by nick238 5y ago
There's also the `setdefault` method you could use on ordinary dicts:
-if day not in days:
- days[day] = []
+days.setdefault(day, [])