Find the Runner-Up Score!

  • + 0 comments

    In this case, it is used to find the second most greater number. You can use brakets to select the index of a list and return the value. So, for example:

    l = [1, 2, 3, 4, 5]
    l[0] # Returns 1
    
    l[-1] # Returns 5
    

    While positive numbers start from left to right, negative numbers start from right to left