I'm currently in my 3rd year of my undergrad in Mathematics and moving onto my 4th year next year. I took a course in Real Analysis I, but the professor was very confusing and we didn't use a textbook for the class (it was his lecture notes) which was also very confusing as well. Although I got a good mark in the course, I don't think I learned anything from the class since I felt like I memorized how to do the questions rather than actually understood the questions.
So I was wondering what would be a good textbook for real analysis. I'm okay with a textbook with rigorous proofs, as long as everything is explained in good detail.
At the same time, I also want to teach myself Topology. I wanted to take it this year, but there was a conflict and hence I could not take the course. So I was also looking for a textbook for an introduction to Topology.
Any kind of recommendations would be great! I really do want to learn analysis and topology.