Complete the code to import the library needed to control the Raspberry Pi camera.
import [1]
The picamera library is used to control the Raspberry Pi camera module.
Complete the code to pause the program for 5 seconds between shots.
time.[1](5)
The sleep function pauses the program for the given number of seconds.
Fix the error in the code to capture an image with the camera.
camera.capture('[1]')
The capture method requires a filename string to save the image.
Fill both blanks to create a dictionary comprehension that stores image filenames with their capture order.
images = {f'image[1].jpg': [2] for i in range(1, 6)}The filename uses the loop variable i to number images, and the value is also i to represent the order.
Fill all three blanks to create a loop that captures 3 images with a 2-second delay between each.
for [1] in range(1, 4): camera.capture(f'image[2].jpg') time.[3](2)
The loop variable i is used to number images, and sleep pauses the program.
