Module 5
append()
Adding items to the end of a list.
Growing a list
The append() method adds a new item to the end of a list.
Python
samples = ["control"]
samples.append("treatment")
samples.append("blank")
print(samples)→ ['control', 'treatment', 'blank']
Your task
Append to a list
- Start with ['control'] and append 'treatment'.