Skip to content

Instantly share code, notes, and snippets.

@jinensetpal
Created August 27, 2020 03:41
Show Gist options
  • Save jinensetpal/194768f5b44e002cdabcac9d2c6f41be to your computer and use it in GitHub Desktop.
Save jinensetpal/194768f5b44e002cdabcac9d2c6f41be to your computer and use it in GitHub Desktop.
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