You are viewing a single comment's thread. Return to all comments →
By default sorting happens in ascending order with index starting from 0. Acc to question we have to pick second lowest grade, so after sorting
first lowest grade at index 0 (first lowest value in ascending order reading left to right) second lowest grade at index 1 (second lowest value in ascending order reading left to right)
And if you know we can pick any specific element of list/set/whatever using indexing. That's why we using [1] to pick element located at index 1
Seems like cookies are disabled on this browser, please enable them to open this website
Nested Lists
You are viewing a single comment's thread. Return to all comments →
By default sorting happens in ascending order with index starting from 0. Acc to question we have to pick second lowest grade, so after sorting
And if you know we can pick any specific element of list/set/whatever using indexing. That's why we using [1] to pick element located at index 1