This could be simplified into `if nums[i : i+2] == [1, 2, 3]:`

Nice work working your way towards the solution.