allMatches update
This commit is contained in:
parent
90f49e9587
commit
4656addc51
|
@ -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