Hacker News new | ask | show | jobs
Ask Gemini: "How do I get the first item from a list?"
2 points by abbassix 46 days ago
Gemini fails to print "[0]"!
2 comments

I got:

  > python
  
  > my_list = ['apple', 'banana', 'cherry']
  > first_item = my_list[0]
  > print(first_item)  # Output: apple
I've probably have been making too many questions about python...
Perhaps you query lacks sufficient context.