Initial Commit
This commit is contained in:
commit
5eecb25431
2 changed files with 1012 additions and 0 deletions
1000
1k_most_common_words.txt
Normal file
1000
1k_most_common_words.txt
Normal file
File diff suppressed because it is too large
Load diff
12
main.py
Normal file
12
main.py
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
import csv
|
||||||
|
import random
|
||||||
|
|
||||||
|
with open('1k_most_common_words.txt', 'rt') as words_file:
|
||||||
|
reader = csv.reader(words_file, delimiter='\n')
|
||||||
|
words = []
|
||||||
|
for row in reader:
|
||||||
|
if row:
|
||||||
|
words.append(row[0])
|
||||||
|
|
||||||
|
for _ in range(4):
|
||||||
|
print(words[random.randint(0, len(words))].title(), end='')
|
Loading…
Reference in a new issue