I have a list of all premier league teams:
teamlist = ["arsenal", "aston-villa", "bournemouth", "chelsea", "crystal-palace", "everton","leicester-city", "liverpool", "manchester-city", "manchester-united", "newcastle-united", "norwich-city", "southampton","stoke-city", "swansea-city", "tottenham-hotspur", "watford", "west-bromich-albion","west-ham-united" ]
I need to compute all possible team1-vs-team2 pairings.
At present I have the following code:
oppo = 0
for team in teamlist:
print team + "-vs-" + teamlist[oppo]
oppo+=1
print team + "-vs-" + teamlist[oppo]
oppo+=1
which will output:
arsenal-vs-arsenal
arsenal-vs-aston-villa
However I need this to go through each team, display all of their possible home game fixtures, then move onto the next team in teamlist, output all of their possible home games fixtures and repeat until all teams are done.