add fix to task
This commit is contained in:
parent
e12d528884
commit
39f0344e2c
@ -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("Обычный")
|
Loading…
Reference in New Issue
Block a user