Question

    What will be printed from the below code?

    List1 =[‘Ixambee’,’provides’,’best’,’mock’,’tests’]

    Print List1[2][-1]

    A e Correct Answer Incorrect Answer
    B s Correct Answer Incorrect Answer
    C best Correct Answer Incorrect Answer
    D t Correct Answer Incorrect Answer
    E provides Correct Answer Incorrect Answer

    Solution

    Print List1[2][-1] will refer to the third element and will -1 will print the last one as the order get reversed.

    Practice Next