Skip to main content
2 of 3
added 210 characters in body
KSFT
  • 1.6k
  • 10
  • 23

Python - 52

print" ".join([bin(ord(i))[2:]for i in raw_input()])

I'll work on translating this into Pyth. Someone else did a Pyth answer already.

If you don't care about it being a full program or about I/O format and use Python 3, you can do it in 23 bytes like this:

[bin(ord(i))for i in x]

x is the input.

KSFT
  • 1.6k
  • 10
  • 23