Complete the code to enable the serial interface by editing the configuration file.
sudo raspi-config nonint do_serial [1]Using 1 enables the serial interface on Raspberry Pi via raspi-config.
Complete the command to edit the boot configuration file to enable UART.
sudo nano /boot/config.txt
Add the line: enable_uart=[1]Setting enable_uart=1 in /boot/config.txt enables the UART serial port.
Fix the error in the command to disable the serial console on Raspberry Pi.
sudo systemctl [1] serial-getty@ttyAMA0.serviceTo disable the serial console, you stop the serial-getty@ttyAMA0.service service.
Fill both blanks to create a dictionary comprehension that maps device names to their baud rates, only for devices with baud rate greater than 9600.
baud_rates = {device: rate for device, rate in devices.items() if rate [1] [2]The comprehension filters devices with baud rates greater than 9600 using rate > 9600.
Fill all three blanks to create a dictionary comprehension that converts device names to uppercase, keeps their baud rates, and filters only devices with baud rate less than 115200.
filtered = { [1]: [2] for [3], rate in devices.items() if rate < 115200 }The comprehension converts device names to uppercase, keeps the rate, and filters by rate less than 115200.
