Understanding MAC Addressing
📖 Scenario: You are learning about how devices on a local network identify each other using MAC addresses. Each device has a unique MAC address that helps in communication within the network.
🎯 Goal: Build a simple list of devices with their MAC addresses, set a filter to find devices from a specific manufacturer, and then extract those devices' MAC addresses.
📋 What You'll Learn
Create a dictionary called
devices with device names as keys and their MAC addresses as values.Create a variable called
manufacturer_prefix that holds the first three pairs of a MAC address to filter devices.Use a dictionary comprehension called
filtered_devices to select devices whose MAC addresses start with manufacturer_prefix.Add a final step to create a list called
filtered_mac_addresses containing only the MAC addresses from filtered_devices.💡 Why This Matters
🌍 Real World
Network administrators use MAC addresses to identify and manage devices on a local network.
💼 Career
Understanding MAC addressing is essential for roles in IT support, network administration, and cybersecurity.
Progress0 / 4 steps