I'm trying to intersect the player list with the computer list, but I'm getting an error that goes like this: "line 13, in print (set (player) .intersection (computer)) TypeError: 'int' object is not iterable ".
Would anyone know where I'm going wrong?
from random import sample
lista = []
for numero in range(1,4):
jogador = int(input(f'{numero}º número: '))
lista.insert(numero, jogador)
print(lista)
jogo = list(range(1, 21))
computador = sample(jogo, 3)
print(computador)
print(set(jogador).intersection(computador))