CBSE Class 11 Computer Science Question 22 of 104

List Manipulation — Question 10

Back to all questions
10
Question

Question 10

To find the last element of list namely 'smiles' in Python, .......... will be used.

  1. smiles[0]
  2. smiles[-1] ✓
  3. smiles[lpos]
  4. smiles[:-1]
Answer