I'm trying to create 3 different teams with 3 different players on each team. But right now all the players on each team are the same. Below is the code I have. If anyone has a solution that would be great.
class player():
name=''
class team():
name=''
players=[]
teams=[]
for i in range (3):
teams.append(team())
teams[i].name=str(i)
for j in range(3):
teams[i].players.append(player())
teams[i].players[j].name='P'+str(i)+str(j)