Rather than reinvent the wheel, for exercises in this I use websites and tutorials that teach you to code.
So far, this includes: