Windows function skips last window

Code reviewMedium20 min

Your task

Review this Python function meant to return all length-k contiguous windows of a list.