Caveman Python code
GPT-3.5
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.