Skip to content

Instantly share code, notes, and snippets.

@pulkitpahwa
Created October 5, 2020 08:23
Show Gist options
  • Select an option

  • Save pulkitpahwa/ab15d6a1487e230d27c8c4e946e6c9f5 to your computer and use it in GitHub Desktop.

Select an option

Save pulkitpahwa/ab15d6a1487e230d27c8c4e946e6c9f5 to your computer and use it in GitHub Desktop.

Revisions

  1. pulkitpahwa created this gist Oct 5, 2020.
    6 changes: 6 additions & 0 deletions python_collections_example2.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # continued from https://gist.github.com/pulkitpahwa/d70d6855b5fba23f5b439b1cae556ad1

    a = Counter({"tata": ["tiago", "nano"]})
    b = Counter({"tata": ["nexon"]})
    c = a + b
    print(c)