From 39f0344e2cf5d0bba6e5bfbd0e7e3ee2f0126c41 Mon Sep 17 00:00:00 2001 From: Yesen Date: Fri, 6 Oct 2023 22:47:52 +0300 Subject: [PATCH] add fix to task --- practica/stepik/stepik_tasks/tickets.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/practica/stepik/stepik_tasks/tickets.py b/practica/stepik/stepik_tasks/tickets.py index f41f2b1..e4cb9ae 100644 --- a/practica/stepik/stepik_tasks/tickets.py +++ b/practica/stepik/stepik_tasks/tickets.py @@ -14,14 +14,14 @@ for num in bilet_num: print ('Обычный') # другой вариант / задача с билетом -bilet_num = list(int(value) for value in input()) -Sum = 0 -Sum_1 = 0 -for num in bilet_num[:3]: - Sum = Sum + num -for num in bilet_num[3:]: - Sum_1 = Sum_1 + num -if Sum == Sum_1: - print ("Счастливый") -else: - print("Обычный") \ No newline at end of file +# bilet_num = list(int(value) for value in input()) +# Sum = 0 +# Sum_1 = 0 +# for num in bilet_num[:3]: +# Sum = Sum + num +# for num in bilet_num[3:]: +# Sum_1 = Sum_1 + num +# if Sum == Sum_1: +# print ("Счастливый") +# else: +# print("Обычный") \ No newline at end of file