← Questions

Sort clothing sizes

0
UberCodingLast asked Jun 2026

Given a list of clothing sizes such as S, M, L, XS and XL, sort them from smallest to largest.

Clarify which sizes can appear (for example, how many Xs may come before S or L) and define a sort key that handles them.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding