Module 12

Building summary tables

Organizing results in a table.

Tables of results

After analyzing sequences, you often want to organize the results in a table. A list of dictionaries works well.

results = [
    {"id": "Tv01", "length": 499, "gc": 54.2},
    {"id": "Tv02", "length": 300, "gc": 48.1},
]
for r in results:
    print(r["id"], r["length"], r["gc"])
Your task

Summary table

  • Create a list of dicts and print each row.