fork download
  1. total = 0
  2.  
  3. def arpro(n):
  4. val = 3 + (n - 1) * 2
  5. return val
  6.  
  7. for n in range(1,21):
  8. nth = arpro(n)
  9. total += nth
  10. print "elvis10ten, the answer to your question is ", total + arpro(50)
Success #stdin #stdout 0.08s 8888KB
stdin
Standard input is empty
stdout
elvis10ten, the answer to your question is  541