I know the OP probably knows this but for undergraduates, there are Analysis I and Analysis II by Terence Tao which follow the exact same style as mentioned in the question. The book is self-sufficient and Tao provides all the necessary background needed to solve the exercises. Some sample chapters can be found freely here.