Complete the code to define a single-layer PCB characteristic.
pcb_type = "[1]" # Defines a PCB with only one conductive layer
A single-layer PCB has only one conductive layer, so the correct term is single-layer.
Complete the code to calculate the number of layers in a multi-layer PCB.
total_layers = [1] + 2 # Number of internal layers plus two outer layers
Multi-layer PCBs have internal layers plus two outer layers. The variable internal_layers represents the count of inner layers.
Fix the error in the code that checks if a PCB is multi-layer.
if pcb_layers [1] 1: print("This is a multi-layer PCB")
A multi-layer PCB has more than one layer, so the condition should check if pcb_layers is greater than 1.
Fill both blanks to create a dictionary showing PCB types and their layer counts.
pcb_layers = {"single-layer": [1], "multi-layer": [2]A single-layer PCB has 1 layer, and a typical multi-layer PCB can have 4 layers or more.
Fill all three blanks to define a function that returns PCB type based on layer count.
def get_pcb_type(layers): if layers == [1]: return "[2]" else: return "[3]"
If the number of layers is 1, the PCB is single-layer; otherwise, it is multi-layer.
