OneCompiler

i did a program so that i can draw randomly teams or people in python

153

import random

criando as listas

times = ["Manchester city", "Everton", "Arsenal", "Leister City","Fulham", "Liverpool","Chelsea","Totheham Hotspur"]

#organizado as listas

lista = times.copy()

#misturando nomes

random.shuffle(lista)

#dividindo os nomes dos times em grupos de 4

grupos = grupos = [lista[i:i+4] for i in range(0, len(lista), 4)]

#imprimindo o resultado

print(grupos)