Complete the code to define a Layer 2 solution type.
layer2_type = "[1]"
Plasma is a Layer 2 scaling solution for blockchains.
Complete the code to specify the main benefit of Layer 2 solutions.
benefit = "[1]"
Layer 2 solutions reduce transaction fees by processing off-chain.
Fix the error in the code to correctly check if a solution is a Rollup.
if solution == "[1]": print("This is a Layer 2 Rollup solution.")
Rollup is a Layer 2 solution that bundles transactions off-chain.
Fill both blanks to create a dictionary of Layer 2 solutions and their types.
layer2_solutions = {"Plasma": "[1]", "Optimistic": "[2]"}Plasma is a Sidechain type, Optimistic is a Rollup type Layer 2 solution.
Fill all three blanks to create a comprehension filtering Layer 2 solutions by type.
filtered = {name: type for name, type in solutions.items() if type == "[1]" or type == "[2]" or type == "[3]"}This comprehension filters solutions that are Sidechain, Rollup, or State Channel types.
