==> Open socket_server.py in first terminal
Now, You will see that because of while loop your program is running continuously and waiting for any connections. In this program server can listen 5 connection
==> Open socket_client.py in second terminal
As soon as the client program run you will see message on server got a connection and at client thank you message will appeare.
Now, This is basic socket Programming you can learn more deep in this library by reading documentation link is bellow.