Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- o,s=0,''
- for c in input():
- if c=='+':o+=1
- elif c=='-':o-=1
- elif c=='.':s+=chr(o)
- print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement