Module 5

Lists

An ordered collection of values.

A list of values

A list is an ordered collection of values. You create it with square brackets, separating items with commas.

Python
samples = ["control", "treatment", "blank"]
print(samples)
print(len(samples))
['control', 'treatment', 'blank'] 3
Your task

Create a list

  • Create a list of three samples and print it.