How to find out a^b of very large numbers in python?
<p>I am trying to find out <code>a^b</code> in python, of really large no.s </p>

<p>My code is this:</p>

<pre><code>t=raw_input()
c=[]
for j in range(0,int(t)):
    n=raw_input()
    a=[]
    a,b= (int(i) for i in n.split(' '))
    c.extend(pow(a,b))
for j in c:
    print j
</code></pre>

<p>And I am getting an error like this:</p>

<pre><code>raceback (most recent call last):
  File "C:/Python26/lastdig.py", line 7, in &lt;module&gt;
    c.extend(pow(a,b))
TypeError: 'int' object is not iterable
</code></pre>

<p>Whats wrong in my prob and is it an efficent way to find out powers of large numbers?</p>
