From 468b7204ee927321c3d18571cfd65d33d15643ef Mon Sep 17 00:00:00 2001 From: Igor <80395407+igoreshk@users.noreply.github.com> Date: Fri, 3 May 2024 12:12:19 +0300 Subject: [PATCH] Update 13_while_amount_of_numbers.py 's += c' more cleaner code then 's = s + c' - wps350: found usable augmented assigne patterns --- 13_while_amount_of_numbers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/13_while_amount_of_numbers.py b/13_while_amount_of_numbers.py index 83cccd4..be7eb08 100644 --- a/13_while_amount_of_numbers.py +++ b/13_while_amount_of_numbers.py @@ -6,7 +6,7 @@ c = int (input()) s = 0 while c != 0: - s = s + c + s += c c = int (input()) print (s)