Why my code is not working

def operations(inp,mi,ma):
w=[]
b=[]
neurons=len(w)
val=0
s=0
ns=0
for i in inp:
w.append(i[0])
b.append(i[1])
for i in range(mi,ma+1):
for j in range(neuron):
print(w[j],b[j])
i=i*w[j]+b[j]
if i%2==0:
ns=ns+1
else:
s=s+1

return s,ns

t=int(input())
for i in range(t):
li=list(map(int,input().split(" ")))
n=li[0]
ma=li[1]
mi=li[2]

inp=[]
for i in range(n):
    inp.append(input().split(" "))
# print(inp," \n",ma," \n",mi)
result=operations(inp,mi,ma)
print(result)

First format your code by using ``` before and after code , and give question link so that we can help u .