Module 5

Module challenge

Choosing the right collection.

Store sample data

Create a list of three sample names. Then create a dictionary for one sample with keys: id, length, and gc. Print the data.

Your task

Store sample data

  • Create a list of 3 sample names and a dict for one sample. Print both.
Remember

• Create and modify lists • Loop through lists • Use tuples for fixed data • Store key-value pairs in dictionaries • Use sets for unique values