def solution(shirtsize):
sizes = ["XS", "S", "M", "L", "XL", "XXL"]
answer = []
for i in sizes:
answer.append(shirtsize.count(i))
return answer
shirt_order=["XS", "S", "L", "L", "XL", "S"]
a = solution(shirt_order);
To embed this project on your website, copy the following code and paste it into your website's HTML: