Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

60%
+1 −0
Challenges Generate Lewis Caroll's Jabberwocky

Python 3, 874 bytes a="'Twas brillig, and the slithy toves\nDid gyre and gimble in the wabe;\nAll mimsy were the borogoves,\nAnd the mome raths outgrabe.";b="he Jabberwock";c="Beware t";d="One, ...

posted 2y ago by General Sebast1an‭

Answer
#1: Initial revision by user avatar General Sebast1an‭ · 2021-08-19T02:25:56Z (over 2 years ago)
# [Python 3], 874 bytes

<!-- language-all: lang-python -->

    a="'Twas brillig, and the slithy toves\nDid gyre and gimble in the wabe;\nAll mimsy were the borogoves,\nAnd the mome raths outgrabe.";b="he Jabberwock";c="Beware t";d="One, two!";e="nd through";f="\n\n";g="vorpal"
    print(a+"\n\n\""+c+b+", my son!\nThe jaws that bite, the claws that catch!\n"+c+"he Jubjub bird, and shun\nThe frumious Bandersnatch!\"\n\nHe took his",g,"sword in hand:\nLong time the manxome foe he sought-\nSo rested he by the Tumtum tree,\nAnd stood awhile in thought.\n\nAnd as in uffish thought he stood,\nT"+b+", with eyes of flame,\nCame whiffling through the tulgey wood,\nAnd burbled as it came!"+f+d,d,"A"+e,"a"+e+"\nThe+",g,"blade went snicker-snack!\nHe left it dead, and with its head\nHe went galumphing back.\n\n\"And hast thou slain t"+b+"?\nCome to my arms, my beamish boy!\nO frabjous day! Callooh! Callay!\"\nHe chortled in his joy.\n\n"+a)

[Try it online!][TIO-ksiawsvb]

This was way faster to deal with than "99 Bottles of Beer" to be completely honest.

[Python 3]: https://docs.python.org/3/
[TIO-ksiawsvb]: https://tio.run/##PVK7jtswEOzzFWs2SSDdNekiCMHdpQiCAFfEpZqltBJp82GQ1Cn6emeXuqSxjH3MzM7wthcTw5f7HXv18bxhBp2sc3ZpAcMExRBkZ4vZocQ3ykP4bidY9kS1vVivHYENdXBDTd0QnpwDb33eYSOek46OKS6y33L7HdZHT5CwmAxxLUvi5UfV6V5x7ydqTWmL41V1Y6@eaUNBUt3Uq9dALZQtnlRHvapgKa6LUd3cqyEMQXVLr95iuqFTH27JhvIJm9oZlGrGRjeqBb9DjuE0hDPTXXDLDIMFtC2CzrXR/S@OWEbDo7Jc1a36smqeTdPhUjZrOJDmtHob1wzPXKeUw7Fa2X/wBTFewdis2qVVeYtpEu8Mz34dwq8YFijWH5Z5DH/EoTkSSAhyYnkYwu8IiXKhSap6r7Pn1ZfVQ0lE7wZnZpoAN2P/xVP3H0WH9Dlnrq7zbLP516w0sscYZ3XYtHH0QDtxRjPMDr0QvPAHGHqenRXJh/9VSVndQhz8gSJMek38RA5GsdLTSTVzM7VTq55UQ61C/pV82L@mGqMdTkxAoUAOdrxSemAjx@upeuhoLgI1Eb7bX0XakvkAnOpM3V3Qrf5mRKLm7cfjBYgmg7nUq/lto7hTr/3Gl4njJcrrwORzfSaa0ItLOu4s4JUjRn2RiCfcT/CCzsVojj9ckKhZwGhiKnK2xGszXOJe@VWDn@/3vw "Python 3 – Try It Online"