Complete the code to set the solder mask expansion value to 0.1 mm.
solder_mask_expansion = [1]The solder mask expansion is typically set in millimeters. Here, 0.1 mm is a common value to ensure proper coverage.
Complete the code to calculate the adjusted pad size by adding solder mask expansion.
adjusted_pad_size = pad_size [1] solder_mask_expansionTo get the adjusted pad size, you add the solder mask expansion to the original pad size.
Fix the error in the code to correctly apply solder mask expansion only if the expansion is positive.
if solder_mask_expansion [1] 0: apply_expansion()
The expansion should be applied only if the solder mask expansion value is greater than zero.
Fill both blanks to create a dictionary comprehension that maps pad names to their adjusted sizes only if expansion is positive.
adjusted_sizes = {pad: size [1] solder_mask_expansion for pad, size in pads.items() if solder_mask_expansion [2] 0}The dictionary comprehension adds the expansion to each pad size only if the expansion is greater than zero.
Fill all three blanks to create a dictionary comprehension that maps pad names in uppercase to their adjusted sizes only if expansion is positive and size is above 0.5 mm.
adjusted_sizes = [1]: size [2] solder_mask_expansion for pad, size in pads.items() if solder_mask_expansion [3] 0 and size > 0.5
This comprehension converts pad names to uppercase, adds expansion to sizes, and filters pads with positive expansion and size greater than 0.5 mm.
