uaveiro-leci/1ano/1semestre/fp/aula07/extras/allMatches.py

10 lines
206 B
Python
Raw Permalink Normal View History

2022-11-10 19:54:11 +00:00
def allMatches(teamList):
matchList = []
for team1 in teamList:
for team2 in teamList:
if team1 != team2:
matchList.append((team1, team2))
return matchList