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