def spin_wheel(n):
winners = set()
while len(winners) < 3: winner = random.randint(1, n) winners.add(winner) return winners if __name__ == "__main__": n = int(input("How many contestants are there? ")) winners = spin_wheel(n) print("The winners are:", winners)

Scroll to Top