Complete the code to print the type of storage device that uses spinning disks.
storage_type = "[1]" print(storage_type)
HDD stands for Hard Disk Drive, which uses spinning disks to store data.
Complete the code to assign the storage device type that uses flash memory.
fast_storage = "[1]"
SSD stands for Solid State Drive and uses flash memory for fast data access.
Fix the error in the code to correctly check if the device is an SSD.
device = "SSD" if device == "[1]": print("Fast storage detected")
The code checks if the device is 'SSD' to print the message about fast storage.
Fill both blanks to create a dictionary mapping device names to their storage type.
storage_devices = {"Seagate": "[1]", "Samsung": "[2]"}Seagate is known for HDDs, Samsung for SSDs in this example.
Fill all three blanks to create a list of storage devices with their type and speed.
devices = [
{"name": "WD Blue", "type": "[1]", "speed": [2],
{"name": "Crucial MX500", "type": "[3]", "speed": 550}
]WD Blue is an HDD with 7200 RPM speed; Crucial MX500 is an SSD with speed 550 MB/s.