Skip to content

Instantly share code, notes, and snippets.

@SamyBencherif
Created March 25, 2019 20:20
Show Gist options
  • Select an option

  • Save SamyBencherif/61f3a9cb31cfd38a9e2866b3a09941d4 to your computer and use it in GitHub Desktop.

Select an option

Save SamyBencherif/61f3a9cb31cfd38a9e2866b3a09941d4 to your computer and use it in GitHub Desktop.
wtfpybf
# This program executes in both brainfuck and python :)
print((((">"[-0]<"D"[-0])++++++++{0:5}[0>++++++3<2-1]<<1)*5>>(0>1))++++(3).real+++{0:(-5).real}[-0]+++3+++++++{0:(8).real}[-0])
@SamyBencherif

Copy link
Copy Markdown
Author

Of course there is the trivial and computationally advantageous soln of
"[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++.+++.-----------------------------------------------." and print(69)
But I prefer to shoot for style points.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment