From d63998e232e1466bb5140c6b766b7c10f9101507 Mon Sep 17 00:00:00 2001 From: Olaf Gladis Date: Thu, 10 Mar 2022 20:44:39 +0100 Subject: [PATCH] using fstring das sollte wohl ein fstring sein --- Level_04/Aufgaben/monty_a.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Level_04/Aufgaben/monty_a.py b/Level_04/Aufgaben/monty_a.py index 404482a..a03046e 100755 --- a/Level_04/Aufgaben/monty_a.py +++ b/Level_04/Aufgaben/monty_a.py @@ -64,6 +64,6 @@ # Buchstabenhäufigkeiten: file_obj = path_chars.open("w") for char, count in char_count.items(): - line = "{char};{count}\n" + line = f"{char};{count}\n" file_obj.writelines([line]) file_obj.close()