elements():
-Returns a count of each element and If an element’s count is less than one, it is ignored.
program-
#import the collections module
import collections
x=collections.Counter(a=1,b=3)
print([*x.elements()])
x=collections.Counter(a=0,b=3,c=5,d=-1)
print([*x.elements()])
x=collections.Counter(a=3,b=1,s=3,z=1)
print([*x.elements()])
['a', 'b', 'b', 'b']
['b', 'b', 'b', 'c', 'c', 'c', 'c', 'c']
['a', 'a', 'a', 'b', 's', 's', 's', 'z']