allMatches update
This commit is contained in:
parent
9aae8f6c9d
commit
bcb84f0b46
|
@ -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
|
||||
if team1 != team2:
|
||||
matchList.append((team1, team2))
|
||||
|
||||
return matchList
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Reference in New Issue