Generated C code inspection
📖 Scenario: You work as a data analyst in a company that uses Simulink to generate C code for embedded systems. Your task is to inspect the generated C code metrics to understand code complexity and size.
🎯 Goal: Build a Python program that stores generated C code metrics, filters metrics based on a threshold, and displays the filtered results.
📋 What You'll Learn
Create a dictionary with exact metric names and values
Add a threshold variable to filter metrics
Use a dictionary comprehension to filter metrics above the threshold
Print the filtered dictionary
💡 Why This Matters
🌍 Real World
Inspecting generated C code metrics helps engineers understand code complexity and maintainability in embedded systems.
💼 Career
Data analysts and software engineers often analyze code metrics to improve software quality and performance.
Progress0 / 4 steps