RG's E-Learning Centre · Book a free demo class · WhatsApp +91-9379416374

List operations and methods: Class 11 practice

Lists are mutable. The quick answer and an example come first; then the method, worked examples and six graded questions.

List operations and methods: quick answer

Lists are mutable. append() adds one item at the end, extend() adds each item of another list, insert(i, x) puts x at index i, pop() removes and returns the last item, and slicing returns a new list.

Example: L = [1, 7, 4] L.append(17) print(len(L), L[-1]) Answer: 4 17.

  • Where it is taught: "Lists in Python", Class 11 Computer Science.
  • On this page: the method, 3 worked examples and 6 graded questions with a full answer key.

How to use this page (about 30 minutes)

  1. Read the method once, then cover the worked examples and try them yourself before reading the steps.
  2. Do the two Basic questions without notes. If either is wrong, re-read the matching worked example.
  3. Do the Standard and Challenge questions, then check every line of working against the answer key — not only the final answer.
  4. Write down the mistake behind each wrong answer and redo that question the next day.

What you should know first

  • Indexing

The idea behind list operations and methods

Lists are mutable. append() adds one item at the end, extend() adds each item of another list, insert(i, x) puts x at index i, pop() removes and returns the last item, and slicing returns a new list.

Step-by-step method

  1. Track the list after each statement.
  2. Remember append vs extend.
  3. Write the final list or printed value.

Worked example 1 (Basic)

L = [1, 7, 4] L.append(17) print(len(L), L[-1])

  1. L = [1, 7, 4, 17]
  2. len = 4, last = 17
  3. Answer: 4 17

Worked example 2 (Standard)

L = [2, 7, 3] L.insert(1, 16) L.append(24) L.append([16, 24]) print(len(L))

  1. After insert: [2, 16, 7, 3]
  2. After append: 5 items
  3. Appending a list adds ONE item → 6
  4. Answer: 6

Worked example 3 (Challenge)

L = [2, 8, 8, 12, 24] v = L.pop() L.extend([v, v]) print(L)

  1. pop removes 24
  2. extend adds two items
  3. Answer: [2, 8, 8, 12, 24, 24]

Common mistakes and misconceptions

  • Thinking append([1, 2]) adds two items
  • Forgetting pop() removes the item

Practice questions

  1. (Basic) L = [3, 5, 8] L.append(10) print(len(L), L[-1])
  2. (Basic) L = [6, 8, 7] L.append(13) print(len(L), L[-1])
  3. (Standard) L = [5, 8, 4] L.insert(1, 18) L.append(24) L.append([18, 24]) print(len(L))
  4. (Standard) L = [1, 7, 6] L.insert(1, 17) L.append(22) L.append([17, 22]) print(len(L))
  5. (Challenge) L = [8, 4, 5, 17, 29] v = L.pop() L.extend([v, v]) print(L)
  6. (Challenge) L = [4, 1, 8, 12, 28] v = L.pop() L.extend([v, v]) print(L)

Answer key with full working

  • Q1: L = [3, 5, 8, 10] → len = 4, last = 10 → Answer: 4 10
  • Q2: L = [6, 8, 7, 13] → len = 4, last = 13 → Answer: 4 13
  • Q3: After insert: [5, 18, 8, 4] → After append: 5 items → Appending a list adds ONE item → 6 → Answer: 6
  • Q4: After insert: [1, 17, 7, 6] → After append: 5 items → Appending a list adds ONE item → 6 → Answer: 6
  • Q5: pop removes 29 → extend adds two items → Answer: [8, 4, 5, 17, 29, 29]
  • Q6: pop removes 28 → extend adds two items → Answer: [4, 1, 8, 12, 28, 28]

Which textbook this practice follows

This skill is taught under "Lists in Python" in Class 11 Computer Science. Check your own textbook's contents page — CBSE, ICSE/ISC and state boards order chapters differently.

Answers on this page are generated and automatically re-checked by a second, independent calculation. They have not been reviewed by a teacher — if you spot a problem, tell us on WhatsApp.

Still stuck after the answer key?

If the same step in list operations and methods keeps going wrong, a short live 1 on 1 class can find the exact gap. The first demo class is free; send the class, board and chapter on WhatsApp (+91 9379416374).

Related practice and notes

More Class 11 Computer Science practice

Continue with this syllabus

Frequently asked questions

Which chapter is list operations and methods in?

This skill is taught under "Lists in Python" in Class 11 Computer Science. Check your own textbook's contents page — CBSE, ICSE/ISC and state boards order chapters differently.

Which question should I start with?

Start with the Basic questions. Move to Standard only when both Basic answers match the key with the same working; the Challenge questions combine this skill with earlier ones.

How were the answers checked?

Answers on this page are generated and automatically re-checked by a second, independent calculation. They have not been reviewed by a teacher — if you spot a problem, tell us on WhatsApp.

Is this only for CBSE?

The skill names follow NCERT/CBSE, but the method is the same for ICSE, state boards, IGCSE and IB. Only the chapter name and order differ.

Can I get live help with this topic?

Yes. RG's E-Learning teaches live 1 on 1 online classes; the first demo class is free and fees are shared after it.

Book a free demo class