Python for beginners:

https://www.youtube.com/watch?v=egq7Z...

Code:

t=int(input());

i=0;

while(i<t):

a=int(input());

rs=bin(a)[2:];

y=list(rs);

y.reverse();

if('1' in y):

io=y.index('1');

print(io+1);

else:

print(0);

i=i+1;

Telegram: https://t.me/clcoding_python

https://www.facebook.com/pirawenpython/

https://www.facebook.com/groups/piraw...

https://www.youtube.com/watch?v=egq7Z...

Code:

t=int(input());

i=0;

while(i<t):

a=int(input());

rs=bin(a)[2:];

y=list(rs);

y.reverse();

if('1' in y):

io=y.index('1');

print(io+1);

else:

print(0);

i=i+1;

Telegram: https://t.me/clcoding_python

https://www.facebook.com/pirawenpython/

https://www.facebook.com/groups/piraw...

## 0 Comments:

## Post a Comment