I recently started to study topology, I have no idea about the subject so my question could be very simple but I need a clear explanation. It is about the page number 19 of Introducton to Topology by Colin Adams and Robert Franzosa; it said that the shapes:


are equivalent in topology, but one has just one hole and the other has two. is possible to add holes or stick holes?

Look a bit more closely at the second picture. There's a couple of little dotted lines connecting the two holes that may be a bit hard to see.
That is meant to convey the impression they are the two ends of a single, long, curved hole through the interior.