Show the difference between true division, floor division and the modulo operator, including for negative operands.
Python gives you three division operators, and the difference between them only becomes obvious with negative numbers, which is exactly where an interview likes to push you.
print(7 / 2) # 3.5, this is true division
print(7 // 2) # 3, this is floor division
print(7 % 2) # 1, this is the remainder
print(-7 / 2) # -3.5
print(-7 // 2) # -4, it floors and does not truncate
print(-7 % 2) # 1, the sign follows the divisor
print(divmod(-7, 2)) # (-4, 1), both results in one call
The single slash always produces a float, even when the operands divide exactly, so 4 / 2 is 2.0 and not 2. The double slash floors the result, and for negative numbers flooring means rounding towards negative infinity. That is why -7 // 2 is -4, while simply cutting off the decimal part would have given -3.
The modulo operator follows the same convention, because the result takes the sign of the divisor, so -7 % 2 is 1 and not -1. That is exactly the behaviour you want when you wrap around the index of a list, because Python's own indexing uses the same rule. my_list[-1] reaches the last element, and the arithmetic stays consistent with it.
divmod is worth remembering because it gives you the quotient and the remainder together. That saves you a division when you need both of them, and it is the standard way to turn a duration into whole hours plus the leftover minutes.
The interview point to make is that Python's modulo is not the modulo that you get in C with negative operands. The C remainder keeps the sign of the value being divided, so -7 % 2 is -1 in C. Getting that difference right is what separates people who have used the language from people who have only read about it.