why this code is giving runtime error(nzec) in python... plese help!!
import math
test = input()
while test>0:
n=input()
if n==0:
print '0'
else:
j = int(math.log(n,2))
print int(pow(2,j))
test-=1
why this code is giving runtime error(nzec) in python... plese help!!
import math
test = input()
while test>0:
n=input()
if n==0:
print '0'
else:
j = int(math.log(n,2))
print int(pow(2,j))
test-=1