Summary
T = int(raw_input())
t = 1
while (t<= T):
n,k = map(float, raw_input().split())
qur = str(raw_input()).split()
day = 0
Q = 0
pending = True
while(pending):
if(day < n):
Q += int(qur[day])
Q -= k
if(Q < 0 ):
pending = False
break
day +=1
print(day + 1)
t = t + 1
**
Question
can any one help me , i think i havent went too far inside loops, well let me tell you that i am new here and this is my first problem so please dont use to much high level terms