Created
August 27, 2020 03:41
-
-
Save jinensetpal/194768f5b44e002cdabcac9d2c6f41be to your computer and use it in GitHub Desktop.
This file contains 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
n = 19 | |
list = [] | |
n2 = n | |
while len(str(n2)) < 6: | |
n3 = str(n2) + "/" + str(int(n2/n)) | |
if set(j for j in n3 if n3.count(j) > 1) == set(): | |
if len(str(n3)) == 10 and "0" not in str(n3): | |
list.append(n3) | |
elif len(str(n3)) == 11: | |
list.append(n3) | |
n2 += n | |
if list == []: | |
print("None") | |
else: | |
for i in range(0, len(list)): | |
if len(list[i]) == 10: | |
print(list[i][:6] + "0" + list[i][6:]) | |
else: | |
print(list[i]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment