16 lines
373 B
Python
16 lines
373 B
Python
|
def main():
|
||
|
matches = allMatches(['SLB', 'FCP', 'SCP', 'SB'])
|
||
|
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))
|
||
|
return matchList
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
main()
|