allMatches update
This commit is contained in:
parent
9aae8f6c9d
commit
bcb84f0b46
|
@ -3,13 +3,15 @@ def main():
|
||||||
print(matches)
|
print(matches)
|
||||||
print(len(matches))
|
print(len(matches))
|
||||||
|
|
||||||
|
|
||||||
def allMatches(teamList):
|
def allMatches(teamList):
|
||||||
matchList = []
|
matchList = []
|
||||||
|
|
||||||
for team1 in teamList:
|
for team1 in teamList:
|
||||||
for team2 in teamList:
|
for team2 in teamList:
|
||||||
if team1 == team2:
|
if team1 != team2:
|
||||||
continue
|
|
||||||
matchList.append((team1, team2))
|
matchList.append((team1, team2))
|
||||||
|
|
||||||
return matchList
|
return matchList
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Reference in New Issue