Do you think this would be a good interview question? **Write a script that...
Do you think this would be a good interview question?
**Write a #python script that replaces the letters in the middle of a word with a number, similar to how Kubernetes becomes k8s. It should work with entire sentences and paragraphs. It should only be activated for words 4 letters or longer. It should not treat punctuation as part of the word. It should work for the Latin alphabet.**
Self-replies
I like that ChatGPT has a hard time with this. It doesn't know how to generate test data because it has no internal ability to count letters in a word.