I want to convert a string into integer in python. I am typecasting it, but in vain please help!!
t=raw_input()
c=[]
for j in range(0,int(t)):
n=raw_input()
a=[]
a,b= (int(i) for i in n.split(' '))
d=pow(a,b)
d.str()
c.append(d[0])
for j in c:
print j
When I try to convert it to string, it's showing an error like int
doesn't have any attribute called str
.