if __name__ == '__main__':
team_one = ['512191', '386271', '935881']
for item in team_one:
p = PlayerFree(item)
team_two = ['288211', '1066118', '532424', '494230']
for item in team_two:
p = PlayerFree(item)
I have a for
loop and I initialise my PlayerFree
instances one at a time. As I have the list of items already, I want the class to run simultaneously for all the items in the list
I know how to do it in a function but can we do it for a class directly?