This repository was archived by the owner on Jul 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWordCheck-Nightly.py
More file actions
58 lines (52 loc) · 1.74 KB
/
WordCheck-Nightly.py
File metadata and controls
58 lines (52 loc) · 1.74 KB
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
# WordCheck
# By Noigamegun
# Version Nightly
# words.txt is required
start_confirm = str(input("Loading the words maybe freeze your PC temporary. Continue? [y,n] : ")).strip().lower()
if start_confirm == "y":
while True:
try:
while True:
print()
# Just add the names here
print("[1] words.txt")
print("[0] Enter Manually")
user_input = int(input("Select From List Above : "))
print()
# Just add the files here
if user_input == 1:
file_path = "words.txt"
break
elif user_input == 0:
file_path = str(input("Enter The Word List Name : "))
break
else:
print("Invalid. Try Again.")
print("\n")
print("Loading words list...")
word_list = []
with open(file_path, "r") as file:
for line in file:
word_list.append(line.strip().lower())
print("\n")
print("Loading Done.")
break
except:
print()
print("File not found. Try again.")
print()
while True:
print("\n")
word_to_check = input("Enter a word (Enter \"WORDKILL\" to stop): ").strip().lower()
if word_to_check == "wordkill":
print("\n")
print("Stopped")
break
else:
print("\n")
if word_to_check in word_list:
print(f"The word \"{word_to_check}\" is a word.")
else:
print(f"The word \"{word_to_check}\" is not a word.")
else:
print("Aborted")