I have a line of code that makes a list from a to z
possible_draws = list(string.ascii_lowercase)
and a user randomly draws 6 letters from inside (Can dupe)
People say that sample doesn't dupe, what should I do then?
user_numbers = random.sample(possible_draws, 6)
Then I print User_numbers
print(user_numbers)
To show the player what letters have been drawn.
But I don't know how to check if there are duplicates in
user_numbers
and if there are duplicates, how many duplicates are there?
*If there is more than 1 duplicate set, it would pick the one with more duplicates.
How could I do that?