I'm trying to have the program count how many elements in 2 different lists are shared.
One list is randomized.
import random
Lotterya = [random.randint(1,49) for _ in range(6)]
And the other is user-input.
Lotteryb = []
while len(Lotteryb) < 6:
n = int(input("enter number: "))
Lotteryb.append(n)
What code do I use to let the program say: "There are _ numbers in common."
?