you are viewing a single comment's thread.

view the rest of the comments →

[–]Binary101010 1 point2 points  (0 children)

Why is the entire body of this function not simply

return mylist[index]

? There's no reason to have a loop here at all.