Hacker News new | ask | show | jobs
by block_dagger 914 days ago
Here’s the python ChatGPT-4 produced and ran with the title prompt:

# Number of elephants total_elephants = 10

# Elephants with legs elephants_with_legs = total_elephants - 2

# Number of legs for an elephant legs_per_elephant = 4

# Total legs total_legs = elephants_with_legs * legs_per_elephant total_legs

Its actual response was correct.

2 comments

Yeah, ChatGPT gave me the correct answer without even needing Python in the case of the title.
Interesting, I copied the text into gpt 4 and it did run python as well.
Remembering that the correct answer is 40 because 'legless' is slang for 'drunk'?
Is that regional? I’ve never heard that euphemism.
It is commonly used in British English. In fact, there is a famous comedy sketch about it that also uses the word 'caravaned'
Calling a drunk person legless is hardly an euphemism.