I adapted a function to solve a problem in my project but I don't really get how it works. Btw a user list is stored in self.__users, it is read from users.txt.
def delete(self, nick):
for x, u in enumerate(self.__users): # <----- Just this line
if u._nickname == nick:
del self.__users[x]
return
Does this mean it will separate each user and give them a number? I don't understand that line.