From 5d3a17467a3bdec5a5709b9f50917a31d180ba4f Mon Sep 17 00:00:00 2001 From: justuser Date: Thu, 14 Nov 2024 21:30:29 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B8=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=B0=D0=BB=20=D1=84=D0=B0=D0=B9=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lines_add.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lines_add.py 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("--------------")