56
\$\begingroup\$

Challenge

The goal is to output Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo.

Context. (Maybe another interesting challenge could be printing all of the other examples? This would probably use similar logic but involve either a function or just a for loop.)

Rule(s)

  1. You cannot output anything other than the string with correct casing and spacing. Trailing new lines are allowed, trailing spaces are not.

This is , so fewest bytes win!

\$\endgroup\$
1
  • 3
    \$\begingroup\$ By the way, there is also an anarchy golf version of this question. \$\endgroup\$ Commented Jan 31, 2021 at 1:26

93 Answers 93

1 2 3
4
0
\$\begingroup\$

YASEPL, 49 bytes

=a!1)"BbBbbbB"`1!b¥a,1~#"uffalo "!+}2,7#"buffalo"
\$\endgroup\$
0
\$\begingroup\$

AWK, 38 bytes

$0="BbBbbbBb"{gsub(/B|b/,"&uffalo ")}1

Attempt This Online!# AWK, 36 bytes

Different approach from other AWK solutions.

\$\endgroup\$
-9
\$\begingroup\$

Python 3, 72 bytes

print('Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo')

I mean, that works.

Try it online!

\$\endgroup\$
1 2 3
4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.