Complete the code to define the maximum number of transactions per block.
MAX_TRANSACTIONS = [1]The maximum transactions per block is set to 1000 to allow more transactions and improve throughput.
Complete the code to increase the block size limit for scaling.
block_size_limit = [1] # in megabytes
Increasing the block size limit to 8 MB allows more data per block, improving scalability.
Fix the error in the code that calculates transactions per second (TPS).
tps = total_transactions / [1] # seconds per block
TPS is calculated by dividing total transactions by the block time in seconds.
Fill both blanks to create a dictionary comprehension that maps block numbers to their sizes if size is less than 8 MB.
block_sizes = {block_num: size for block_num, size in blocks.items() if size [1] [2]The comprehension filters blocks with size less than 8 MB to manage scalability.
Fill all three blanks to create a dictionary comprehension that maps block IDs (uppercase) to their transaction counts if count is greater than 1000.
filtered_blocks = { [1]: [2] for block_id, count in blocks.items() if count [3] 1000}This comprehension filters blocks with more than 1000 transactions and maps uppercase block IDs to counts.