Complete the code to register a new device in the registry.
registry.register_device(device_id=[1])The device ID must be a string, so it needs quotes around it.
Complete the code to provision a device using the correct method.
provisioning_client.[1](device_id)The method to start device provisioning is provision_device.
Fix the error in the code to fetch device info from the registry.
device_info = registry.get_device([1])The method expects a variable holding the device ID, not a string literal.
Fill both blanks to create a dictionary of devices filtered by status.
filtered_devices = {device: info for device, info in registry.devices.items() if info['[1]'] == '[2]'}The dictionary filters devices where the status is active.
Fill all three blanks to create a registry update for devices with low battery.
low_battery_devices = { [1]: [2] for [1] , [2] in registry.devices.items() if [2]['battery'] < 20 }The dictionary comprehension uses device as the key and info as the value for devices with battery less than 20.
