should be “how many letters does the string X have”
for letter in alphabet: If “djsjcnnrjfkalcr” in letter: count+=1
I’d say it’s rather incredible if ChatGPT figured out the intention, rather than the literal meaning of the above question.
Q. Is the sentence "How many legs has an ant" grammatical?
A. Yes, the sentence "How many legs does an ant have" is grammatically correct. It is a question asking for the number of legs that an ant has.
-
I think it is grammatical, it's just poetic? An expression like "Such a hunger to know how many stars has the sky" is not unusual to my ears.
I’d say it’s rather incredible if ChatGPT figured out the intention, rather than the literal meaning of the above question.