can any one tell me why i am getting partially correct with this
# cook your dish here
t=int(input())
for i in range(t):
ans=0
ts=int(input())
while(ts%2==0):
ts=ts/2
ts=int(ts)
if ts%2!=0:
ans=ts//2
print(ans)
while i am getting correct answer for all the test cases for the following code:(we have to get the same answer with floor divison normal divison for even numbers rightt)
# cook your dish here
t=int(input())
for i in range(t):
ans=0
ts=int(input())
while(ts%2==0):
ts=ts//2
if ts%2!=0:
ans=ts//2
print(ans)
can any one please help me…