Predicting House Sale Prices

Screen Link:

I am reviewing the solutions page to mission 240.
In the last cell block for when k == 1 it splits the data and trains and tests then flips the train and test and repeat.
How is this any different from a k-fold of 2 (of which the function exists in this code block?
Thanks!