๐ Day 59/150 – Rotate a List in Python
Rotating a list means shifting its elements either to the left or to the right.
Example:
[1, 2, 3, 4, 5]
Rotate right by 2 → [4, 5, 1, 2, 3]
Rotate left by 2 → [3, 4, 5, 1, 2]
Let’s explore different ways to rotate a list ๐



