Last active
June 27, 2020 15:11
-
-
Save nhwaani/f7ea15b8450d2f049f2e207a48e6b0cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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