From cd8ac2c375b4394638d62652713a6893fdd7838c Mon Sep 17 00:00:00 2001 From: Bruno Moretti Date: Fri, 15 Aug 2025 01:17:52 -0300 Subject: [PATCH] Update building.py String treated when ctrl + d is pressed without typing --- python-0-Starting/ex_05/building.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-0-Starting/ex_05/building.py b/python-0-Starting/ex_05/building.py index bdd5c64..bd54297 100644 --- a/python-0-Starting/ex_05/building.py +++ b/python-0-Starting/ex_05/building.py @@ -43,7 +43,7 @@ def main(): s = input("What is the text to count?\n") s += "\n" except EOFError: - pass + s = "" elif len(sys.argv) == 2: s = sys.argv[1] elif len(sys.argv) > 2: