vendredi 10 juin 2016

Assign random team out of 16 teams to a random person out of 8 people

does anyone have a simple python program to assign a random team out of 16 teams to a random person out of 8 people

I haven't tried much as I am very new to python and got assigned this task at work for a bit of fun as a draw for the Euros

here is what is an example of what i am trying to do

import random

person = ['Name', 'Name', 'Name', 'Name', 'Name', 'Name', 'Name', 'Name']

team = ['France', 'Switzerland', 'England', 'Slovakia', 'Germany', 'Ukraine', 'Spain', 'Czech Republic', 'Croatia', 'Italy', 'Republic of Ireland', 'Sweeden', 'Russia', 'Wales', 'Belgium']




Aucun commentaire:

Enregistrer un commentaire