fork(1) download
  1. # your code goes here
  2.  
  3. numList = [2,3,4,5]
  4. calc = lambda s: sum([x * 10**i for i, x in enumerate([ord(x) - zero for x in s[::-1]])])
  5. print calc(''.join(numList))
Runtime error #stdin #stdout #stderr 0s 9024KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 5, in <module>
TypeError: sequence item 0: expected string, int found