About Lists

5 important questions on About Lists

How can you store a list?

With an variable that stores a list.

Like this: test = [1,2]

What things can we store in a list?

Anything, like strings, numbers etc.

What function is for finding out how many items there are in a list?

len()
  • Higher grades + faster learning
  • Never study anything twice
  • 100% sure, 100% understanding
Discover Study Smart

What statement adds elements to a list?

.append()

What does the statement count() do?

This counts how often an element in a list(a number, string) appears.

The question on the page originate from the summary of the following study material:

  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo