13. Given a string s = “12345”. Can you write an expression that gives sum of all the digits shown inside the string s i.e., the program should be able to produce the result as 15 (1 + 2 + 3 + 4 + 5). [Hint. Uses indexes and convert to integer]

# Output

s = “12345”
ans = sum(int(s[i]) for i in range(5))
print(ans)