logo

AQA A-Level Computer Science practice

Which Python expression constructs an empty list?

Try the question first, then check the answer and practise the same topic again.

At a glance

MCQ

Type

practice

Style

Topic

Lists in functional programming

Exam-style question

Try this first

Which Python expression constructs an empty list?.

  1. A.{}
  2. B.()
  3. C.[]
  4. D.empty

Answer and explanation

Concise answer

[]

Why this is correct

In Python, [] represents a list containing no elements.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions