Write find_by_id(logs, pid) that returns the log record (a dict) whose id equals pid. You can assume the id exists.
find_by_id(logs, pid)
id
pid
full-screen editor opens — close anytime to keep reading.