The error is occuring because you cannot get the [0] index value of an integer. It is only posible to get an index value of an array or string. Create a variable ('temp'↓) that is the string variable of the [0] index of that integer and then use that in the conditional statement:
This works:
def digit1x(lx):
list = []
for num in lx:
temp = str(lx[num])
if temp[0] == '1':
list.append(temp)
return list
print(digit1x(lx))
The value of temp is the string value of the current item.
'temp[0]' is the first character in temp, and therefore the first character in the current item.
Therefore, if temp[0] equals '1' then the first number in the current item is 1.