Aug-30-2021, 11:22 PM
The final line doesn't have a balanced number of quotation marks. The string after counter needs to be in quotes. This would be a little bit easier to do with f-strings. Consider instead:
print(f"You guessed {counter} number(s) correctly.")Also you are using a random function that picks with the possibility of duplicates and then doing logic to avoid duplicates. You could instead use the method that picks without duplicates
no_duplicates = random.sample(range(1,60), 5)You are using
range(1,60)
for the possible picks. That does not include the number 60. If you want 60 to be possible, you need range(1,61).