Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text = input()
- sum = 0
- for word in text:
- if word == "<":
- if word == ">":
- break
- else:
- if ord(word) in range(48, 58):
- sum += int(word)
- print(sum)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement