You are viewing a single comment's thread. Return to all comments →
can you please explain line 5 - d[item] = d.get(item, 0) + int(quantity)
I could not get "d.get(item, 0) " part
Seems like cookies are disabled on this browser, please enable them to open this website
Collections.OrderedDict()
You are viewing a single comment's thread. Return to all comments →
can you please explain line 5 - d[item] = d.get(item, 0) + int(quantity)
I could not get "d.get(item, 0) " part