Python : Code
olympic_boxers = ['Mary Kom','Nicola Adams','Claressa Sheilds',
'Marlen Esparza','Natasha Jonas','Ren Cancan',
'Savannah Marshall','Mary Spencer']
Create a Round of 4 Random Matches between the Boxers. An example has been provided below.
Points to Note:
The boxer names should not be repeated.
All 8 boxers should have a Match.
Output Example:
Summer Olympics - Boxing
Mary Kom vs Ren Cancan
Nicola Adams vs Claressa Sheilds
Natasha Jonas vs Marlen Esparza
Mary Spencer vs Savannah Marshall
Vandesm14
I moved your post to the Share board, which is for sharing code.
[deleted]
Dont understand it bro
To avoid doubles you can remove the names from the list.
First get them in a random order, then pop (get and remove) the names.
Output if the names were not shuffled: