summaryrefslogtreecommitdiff
path: root/passwords.py
blob: 74f2ee47014e4c323a67721d530d9ea119226969 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env python3
import sys

words = [
    "about",
    "after",
    "again",
    "below",
    "could",
    "every",
    "first",
    "found",
    "great",
    "house",
    "large",
    "learn",
    "never",
    "other",
    "place",
    "plant",
    "point",
    "right",
    "small",
    "sound",
    "spell",
    "still",
    "study",
    "their",
    "there",
    "these",
    "thing",
    "think",
    "three",
    "water",
    "where",
    "which",
    "world",
    "would",
    "write",
]

index = 0
poss = words

for arg in sys.argv[1:]:
    idcs = []
    if len(arg) == 0 or arg == "-":
        index += 1
        continue

    for i in range(len(poss)):
        if poss[i][index] in arg:
            idcs.append(i)

    poss = [poss[i] for i in idcs]
    index += 1

print(poss)