Your question is Average Calculation Function. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Axon Evidence records can contain numeric metadata such as file size or processing duration. Given an in-memory collection of records and a field name, calculate the arithmetic mean of that field across all records that contain it.
Implement average_field(records, field).
records is a list of dictionaries, where each dictionary represents one Axon Evidence record.field is a string naming the desired field.field.def average_field(records, field):