From d933da1ca7193d37dbbc4a5ff9791eb8c02d009d Mon Sep 17 00:00:00 2001 From: lijl Date: Sun, 9 Feb 2025 18:17:22 +0800 Subject: [PATCH] 5_14.py: get value by input() Signed-off-by: lijl --- 5_14.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/5_14.py b/5_14.py index b4f8f0c..3c046bb 100644 --- a/5_14.py +++ b/5_14.py @@ -2,7 +2,7 @@ def my_func(): a = 10 print("a:{}".format(a)) print("b:{}".format(b)) -b = 20 +b = int(input()) my_func() print("b:{}".format(b)) print("a:{}".format(a))