From d58be164f807c1562999f61f37bddf382a1208a1 Mon Sep 17 00:00:00 2001 From: Boyan <boyan@confest.im> Date: Tue, 4 Jun 2024 16:26:08 +0200 Subject: [PATCH] added input --- src/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index c71495f..a745c16 100644 --- a/src/main.py +++ b/src/main.py @@ -55,7 +55,8 @@ def save_file(json:list[dict], filename:str) -> None: raise IndexError("Error saving file") from exc def main(): - file = get_file(10) + size = int(input("Entries: ")) + file = get_file(size) save_file(file, "out.json")