diff --git a/lines_add.py b/lines_add.py new file mode 100644 index 0000000..c5425df --- /dev/null +++ b/lines_add.py @@ -0,0 +1,19 @@ +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("--------------")