I am using Python and having trouble because of 'String formatting' error.
x = int(input())
x_list = ' '.join(str(x)).split()
for i in range(len(x_list)):
if x_list[i] % 2 == 0 and x_list[i+1] % 2 == 0 :
x_list.insert(i+1,'*')
x_list is an arbitrary list that I made, and the error occurs at the 4th line. I think the error occurs because of the '%', which I wanted to use to calculate the remainder.
How can I solve this problem?