Python3
print(sum([int(x.strip()) for x in input().split('+')]))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Python3
print(sum([int(x.strip()) for x in input().split('+')]))