Complete the code to initialize the sliding window start index.
start = [1]The sliding window usually starts at index 0 to cover the beginning of the data.
Complete the code to move the sliding window end index forward by one.
end = [1] + 1
To slide the window forward, the end index is increased by one from its current position.
Fix the error in the code to shrink the sliding window from the left.
start = [1] + 1
To shrink the window from the left, increase the start index by one.
Fill both blanks to create a sliding window dictionary comprehension that stores word lengths for words longer than 3 characters.
{word: [1] for word in words if [2] > 3}The dictionary comprehension maps each word to its length, filtering words longer than 3 characters using len(word) > 3.
Fill all three blanks to create a sliding window dictionary comprehension that stores uppercase words and their lengths if length is greater than 4.
{ [1]: [2] for word in words if [3] > 4 }The comprehension uses the uppercase word as key, its length as value, and filters words longer than 4 characters.