allMatches update

This commit is contained in:
tiagorg 2022-11-09 21:56:58 +00:00
parent 90f49e9587
commit 4656addc51
1 changed files with 5 additions and 3 deletions

View File

@ -3,13 +3,15 @@ def main():
print(matches)
print(len(matches))
def allMatches(teamList):
matchList = []
for team1 in teamList:
for team2 in teamList:
if team1 == team2:
continue
matchList.append((team1, team2))
if team1 != team2:
matchList.append((team1, team2))
return matchList
if __name__ == "__main__":