+ 8
[challenge] planning a competition with 6 teams
with 6 teams (1-6) there are 5 rounds: 1-6 2-5 3-4 6-2 3-1 4-5 3-6 4-2 5-1 6-4 5-3 1-2 5-6 1-4 2-3 Find a good data structure for the plan, give a name to any of the teams and print the plan eg: first round: css - java python-ruby kotlin-web runaways might create random results for each round and print the table.
2 Antworten
+ 4
Moin Sebstian,
t=[[(1,6),(2,5),(3 4)],[(6,2),(3,1),(3,5)]..........]
teams= {1="blue",2="red"........}
for round in t:
for match in round:
a,b = match
print(teams[1]....,
will do it.
+ 1
Hi Oma. Maybe the task is to hard. Here is my lazy solution.
https://code.sololearn.com/cNczZQuELCY5/?ref=app