Why store dicts instead of just printing?

NoahLoopsOP edited

Stage 1 asks to store everything in records. Feels like extra work.

1

Comments 4

Log in to join the discussion.

Log in Create account
  1. HenryWritesreplies: 2

    Because the next steps (filtering, charts, reports) need the data again. Printing is a dead end; a list of records is data you can reuse anywhere. Stage 2 already reuses it for filtering.

    5
    1. NoahLoopsOPreplies: 1

      Data first, output last. Got it.

      0
      1. LucasVD

        Yep — the stored dict in the expected output shows 412.5 without quotes.

        2
    2. FreyaL

      Remember to convert value with float() before storing. Strings in records come back to bite you later.

      6