Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. inp_str = input()
  2. ans = '0b'
  3. for char in inp_str:
  4.     if char.isupper():
  5.         ans += '1'
  6.     else:
  7.         ans += '0'
  8. buff = eval(ans)
  9. outp_str = ' '
  10. while buff > 1:
  11.     outp_str += chr(buff % 10000)
  12.     buff //= 10000
  13. print(outp_str[::-1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement