Skip to content

Instantly share code, notes, and snippets.

@nhwaani
Last active June 27, 2020 15:11
Show Gist options
  • Save nhwaani/f7ea15b8450d2f049f2e207a48e6b0cd to your computer and use it in GitHub Desktop.
Save nhwaani/f7ea15b8450d2f049f2e207a48e6b0cd to your computer and use it in GitHub Desktop.
for i, _ in enumerate(string):
y = i+1
for x in range(y, len(string)):
if ord(string[i]) - ord(string[x]) == 0:
return False
return True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment