Hi All, I'm trying to repair and close some gaps between myhouse so that rat/mice or snake can't go into it..anyone know what is the black colour seal between the brick floor and the house bricks are (see below)

Anyone know what is the black colour seal between my outdoor floor brick and the house brick?

Also noticed myoutdoor house Brickd has gap see photo above. How do I seal it?