|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/python
import math;
import sys;
def sumDigits(num):
sum = 0;
for i in range (0,len(num)):
sum += int(num[i]);
return sum;
print "Result is: " + str(sumDigits(str(int(math.pow(int(sys.argv[1]),int(sys.argv[2]))))))
|