I've got a map of this form:
Weekday -> Object -> Integer
I've tried to do this but am getting some issues down the line to do with a key not existing. The error could exist elsewhere in the code. However, could someone perform a little sanity check for me please?
def deepCopy(self, dictToCopy):
copy = {"Monday":{}, "Tuesday":{}, "Wednesday":{}, "Thursday":{}, "Friday":{}}
for day, dicts in dictToCopy.items():
for object, count in dicts.items():
copy[day][object] = count
return copy