Settings

Theme

Ask Gemini: "How do I get the first item from a list?"

2 points by abbassix 2 days ago · 2 comments · 1 min read


Gemini fails to print "[0]"!

gus_massa a day ago

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...
uberman 2 days ago

Perhaps you query lacks sufficient context.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection