Skip to content

Instantly share code, notes, and snippets.

@preston-56
Last active March 21, 2024 17:24
Show Gist options
  • Select an option

  • Save preston-56/7a6fcf8822802df5dc84566992e1fa75 to your computer and use it in GitHub Desktop.

Select an option

Save preston-56/7a6fcf8822802df5dc84566992e1fa75 to your computer and use it in GitHub Desktop.
numbers = [1, 1, 2, 3]
def has_repeated_numbers():
return len(set(numbers)) != len(numbers)
print(has_repeated_numbers())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment