two and digit output not working in even/odd filter in python : {
def even_odd_filter(oe):

               odd_list = []

               even_list = []

               total = []

               for i in oe:

                    i = int(i)

                    if i % 2 == 0:

                    even_list.extend(str(i))

                    else:

                        odd_list.extend(str(i))

        total.append(even_list)

        total.append(odd_list)

        total = [even_list, odd_list]

    print("Even list : ", even_list)

    print("Odd list : ", odd_list)

    return total

userinput = input("Enter number by comma  : ").split(",")

print(even_odd_filter(userinput))
}