"I found this example. It's not exactly what you want, but if you look up using counters and the newcommand and renewcommand definitions, you should be able to do exactly what you want, which wasn't totally clear to me.
"I would suggest using enumerate to organize problems and use sections to group them. For example:
\begin{enumerate} \item The ``enumerate'' environment numbers the list elements, like this.
Items in a list can contain multiple paragraphs. These paragraphs are appropriately spaced and indented according to their position in the list. \begin{itemize} \item The ``itemize'' environment sets off list items with ``bullets'', like this. Finally, the ``description'' environment lets you put your own \begin{description} \item[A] label on each item, like this ``A''. \item[If the label is long,] the first line of the item text will be spaced over to the right as needed. \end{description} \end{enumerate}
Taken from pangea.stanford.edu LaTeX by Example
Doing this gives you way more flexibility structuring the details of your individual assignments - for example you can enumerate as deeply as you need, but can only take sections to 3 levels."