I know to this question sounds weird but I'll try to explain it as well as I can. I have dict with a date as key and int as a value. It looks like this:
{'22-07-2018,': 1,
'14-07-2018,': 1,
'12-07-2018,': 1,
'4-03-2018,': 1,
'20-02-2018,': 1,
'15-02-2018,': 2,
'25-11-2017,': 1,
'11-11-2017,': 2,
'26-10-2017,': 2,
'21-10-2017,': 6,}
Now I need to add items to this dict with 0 as between all these dates so like this:
{'22-07-2018,': 1,
'21-07-2018,': 0,
'20-07-2018,': 0,
'19-07-2018,': 0,
'18-07-2018,': 0,
...
'14-07-2018,': 1,
'13-07-2018,': 0,
'12-07-2018,': 0,
'11-07-2018,': 0,
'10-07-2018,': 0,
...
'4-03-2018,': 1,
...}
It's really important for me to have this dict in order.
Does anyone know how to do this?