PythiloEasy · 12 min · Task 36 of 100 · progress kept in this browser

Build a note from characters

Return whether the characters in source can construct note, consuming each source character at most once. Matching is case sensitive.

from collections import Counter
stock = Counter('aab')
stock['a'] -= 1
print(stock)
Your task

Return whether the characters in source can construct note, consuming each source character at most once. Matching is case sensitive.