I want to know how can I use the 10eX notation in python 2.7.9 with a variable. In terms of literals 10eX gives (10^X).00000(floating point number). I want to use some variable instead of literal, however, and it does not work. What syntactical change should I make if it is possible to do so or is there any other way to do so? Thanks in advance!
T = int(raw_input())
while T:
N = int(raw_input())
LIS = map(int,raw_input().split())
num_lis, num = []*N, []*N
low = int(10e+(N))
high = int(10e+(N+1))
temp, count = 0, 0
for i in xrange(low,high):
num_lis = [1]*N
temp = i
while temp!=0:
r = temp%10
num[high-1-i] = r
temp=temp/10
for p in xrange[1,N]:
for q in xrange(0,p):
if num[q]<num[p]:
if num_lis[p]<(num_lis[q]+1):
num_lis[p]=num_lis[q]+1
if LIS[p]!=num_lis[p]:
break
else:
count++
print count
T-=1
On running the interpreter I get error for- 10e(N) : Invalid Syntax