@virnuls/

Thief!

Python

One of the OCR programming challenges

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
digits = input("Enter the four digits from the PIN without any separators: ")
PINs = []
for a in range(4):
  for b in range(4):
    if a != b:
      for c in range(4):
        if c != a and c != b:
          for d in range(4):
            if d != a and d != b and d != c:
              PIN = digits[a]+digits[b]+digits[c]+digits[d]
              if PIN not in PINs:
                print(PIN)
                PINs.append(PIN)
print("There are",len(PINs),"possible PINs.")