number = input("Print number which contains an even number of characters: ")

num = [int(i) for i in number]

half_sum = 0
sum = 0
for i in range(len(number)//2):
    half_sum = half_sum + num[i]
for i in range(len(number)):
    sum = sum + num[i]
if half_sum == sum/2:
    print("Yes")
else:
    print("No")

585f19bd2f71a81fb7a7832182601acde6508d1b
<mask token>

<mask token>
for i in range(len(number) // 2):
    half_sum = half_sum + num[i]
for i in range(len(number)):
    sum = sum + num[i]
if half_sum == sum / 2:
    print('Yes')
else:
    print('No')

number = input('Print number which contains an even number of characters: ')
num = [int(i) for i in number]
half_sum = 0
sum = 0
for i in range(len(number) // 2):
    half_sum = half_sum + num[i]
for i in range(len(number)):
    sum = sum + num[i]
if half_sum == sum / 2:
    print('Yes')
else:
    print('No')

number = input("Print number which contains an even number of characters: ")

num = [int(i) for i in number]

half_sum = 0
sum = 0
for i in range(len(number)//2):
    half_sum = half_sum + num[i]
for i in range(len(number)):
    sum = sum + num[i]
if half_sum == sum/2:
    print("Yes")
else:
    print("No")
