Indentation in python problem

for _ in range(int(input())):
mod=10**9+7
dp=[]
n,m=map(int,input().split())
for i in range(n+1):
dp.append(0)
dp[0]=1

for i in range(1,min(m,n)):
    dp[i]=1
def recur(n,m):
	if dp[n]!=0:
		return dp[n]
	else:
	    
		dp[n]=recur(n-m,m)+recur(n-1,m)
recur(n,m)
print(dp[-1]%mod)

I wrote it perfectly but still it is showing indentation problem. Please help!

hi @govilayush please share your code using IDE

@govilayush please share your code using CB IDE or mark the doubt as resolved if you dont have a query anymore

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.