Skip to main content
added 580 characters in body
Source Link
ElPedro
  • 6.5k
  • 2
  • 24
  • 38

Python 2, 88 bytes

i=input()
f=''.join('10'[x==i[0]]for x in i[2:])
while f:print chr(int(f[:8],2));f=f[8:]

Try it online!

Not the shortest - just an alternative way.

Following version prints the output on one line for 98 bytes although the rules state that trailing whitespace is allowed.:

i=input();f=''.join('10'[x==i[0]]for x in i[2:]);o=""
while f:o+=chr(int(f[:8],2));f=f[8:]
print o

Try it online!

Python 2, 88 bytes

i=input()
f=''.join('10'[x==i[0]]for x in i[2:])
while f:print chr(int(f[:8],2));f=f[8:]

Try it online!

Not the shortest - just an alternative way.

Python 2, 88 bytes

i=input()
f=''.join('10'[x==i[0]]for x in i[2:])
while f:print chr(int(f[:8],2));f=f[8:]

Try it online!

Not the shortest - just an alternative way.

Following version prints the output on one line for 98 bytes although the rules state that trailing whitespace is allowed.:

i=input();f=''.join('10'[x==i[0]]for x in i[2:]);o=""
while f:o+=chr(int(f[:8],2));f=f[8:]
print o

Try it online!

Source Link
ElPedro
  • 6.5k
  • 2
  • 24
  • 38

Python 2, 88 bytes

i=input()
f=''.join('10'[x==i[0]]for x in i[2:])
while f:print chr(int(f[:8],2));f=f[8:]

Try it online!

Not the shortest - just an alternative way.