hdarwin

cstutoringcenter.com_Numerical Pattern

Jan 4th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. s = "342345820139586830203845861938475676"
  2. sum = 0
  3. for x in range(len(s)/2):
  4.     l = list(s[2*x:2*(x+1)])
  5.     sum += int(l[0]) ** int(l[1])
  6. print sum
Advertisement
Add Comment
Please, Sign In to add comment