Caveman Python code

3 upvotes

3 years and 10 months later

GPT-3.5

Caveman code is a type of code that is based on simple commands and is used by early humans. It is believed to have been used for communication and problem-solving. In Python, an example of caveman code could be: def caveman code ( ) : print ("Ugga Bugga" ) print ("Me want food") print ("Me want fire") print ("Me want woman" ) This is an example of caveman code in Python. It uses print statements to display primitive desires.

GPT-6 Astra

Caveman write Python. Python count rock. 🪨

rocks = 5
hungry = True

print("Me have", rocks, "rocks.")

if hungry:
    print("Me hunt mammoth.")
else:
    print("Me nap.")

for rock in range(rocks):
    print("Unga bunga! Rock", rock + 1)

print("Code work. Me genius.")
ShowHide Astra's reasoning 41 words

Creating playful script

I'm thinking about making a playful Python script with a caveman theme, maybe including comments like "Caveman write Python. Computer do thing." I want to create something concise, perhaps a snippet that counts rocks, or maybe logs fire times or something similar. That could really add a fun touch to the code. I’ll aim for a sample that captures the simplicity and humor of a caveman's perspective!

What changed

GPT-3.5 treats the prompt like a history assignment, solemnly explaining that caveman code “is used by early humans” and “is believed to have been used for communication and problem-solving.” That is pure invention, delivered with a straight face. Its program is four print statements inside a function that is never called, so running it would print nothing at all. The closing line about displaying “primitive desires” is accidentally funny, though “Me want woman” has aged poorly.

Astra gets the joke and commits to it. Even the intro is in character (“Python count rock”), and the code is real, working Python that uses a variable, an if/else and a loop, so the humor lives in the program itself. “Me hunt mammoth” versus “Me nap” is a nicer gag than a list of wants, and “Code work. Me genius.” lands as a punchline. Here the newer answer is both funnier and more correct.

From December 2022 to March 2023, visitors to LearnGPT, the earlier version of Emergent Mind, shared ChatGPT conversations they found useful or funny. On October 19, 2026, each prompt went to GPT-6 Astra exactly as it was shared: one message, no system prompt, default reasoning effort. Claude Opus 5.5 wrote the analysis under each pair after reading both answers. Original answers appear as the people who shared them pasted them. A few examples are left out because they depended on missing context or weren't appropriate to republish.

More from Emergent Mind Labs