input_data = "12345"
answer = 0

for i in range(len(input_data) // 2):
    if input_data[i] != input_data[-1-i]:
        answer += 1

print(answer)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: