problem with list return type??
Posted
by kaushik
on Stack Overflow
See other posts from Stack Overflow
or by kaushik
Published on 2010-05-28T05:23:13Z
Indexed on
2010/05/28
5:31 UTC
Read the original article
Hit count: 187
python
my list has value such as
m=[['na','1','2']['ka','31','45']['ra','3','5']
d=0
r=2
t=m[d][r]
print t # this is givin number i.e 2
Now when I use this value
u=[]
u=m[t]
I am getting an err msg saying type error list does take str values...
i want to use like this how can i convert that t into a integer??
please suggest..
thanks..
© Stack Overflow or respective owner