Hello everyone, i have a server that will take data in and send it to another script, the thing is i need to make a list of connections. i have already tried to do this with when the script connects to the server i store it into a list but when i try to send the data i get an error that says something like this,  "An operation has occurred on something that is not a socket" here is an example of how i store the connection and try to send it data.

connection, address = socket.accept()
connection_list = list()
for i in connection_list:

but this does not work and i am not able to send it data. How can i make a list of connections and be able to send data to all of them?