Collections.OrderedDict()

  • + 0 comments

    Thanks! it worked! But why are we using rpartition? Why can't we use just input().split for item and quantity. The next input is anway in the next line and we are already using a for loop