logoalt Hacker News

dekhntoday at 12:52 AM0 repliesview on HN

What is your point, exactly? You should state it clearly at the start of the post.

When I asked gemini, it printed the right answer, and it also had a button: "Show code", which I clicked: word = "strawberry" count = word.lower().count('e') print(f"The number of 'e's in '{word}' is {count}.")

Now, the followup (from a comment below): "How many straws in strawberry": there are 0 "straws" (again with the Python code). Similarly, "How many straw in strawberry": 1 straw (again with the Python code, showing it's just trying to do string matching).

Next: Q: "When I saw straw, I mean the object you use to drink liquids through. How many straw in strawberry?"

A: "While the word strawberry contains the letters to spell "straw" exactly one time, there are zero actual drinking objects inside the fruit. Trying to use a berry as a straw would mostly just result in a very messy snack!"