#[Pyth][1], 32
Pyth, 32
p?kqZ4d@P"It is by a rope."dZ~Z1
Phrase: "It is by a rope."
Entropy: 3.5
How it works:
p
means print with specified separator.
The first argument, ?kqZ4d
, gives the separator. ?kqZ4d
means k if Z==4 else d
. k
is ''
, while d
is ' '
.
The second argument, the value to be printed, is generated by splitting (P
) on space (d
), and the indexing into that list (@
) at Z
.
Finally, Z
, which is automatically initialized to 0, is incremented by 1 (~Z1
).
[1]: https://github.com/isaacg1/pyth