add fix to task

This commit is contained in:
Yesen 2023-10-06 22:47:52 +03:00
parent e12d528884
commit 39f0344e2c

View File

@ -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("Обычный")
# 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("Обычный")