antimat_neuro/lines_add.py
2024-11-14 21:30:29 +03:00

20 lines
273 B
Python

from db import *
mode = input('mode: ')
words = []
while True:
temp = input()
if temp == 'exit':
break
else:
words.append(temp)
db = read()
db[mode] = db[mode] + words
write(db)
print("--------------")
print("ADDED")
print("--------------")