Question: Write a Python program that rotates the element of a list so that the element at the first index moves to the second index, the
Write a Python program that rotates the element of a list so that the element at the first index moves to the second index, the element in the second index moves to the third index, etc., and the element in the last index moves to the first index.
1. Program to asks to enter the number of elements and enter 7. 2. Enter the following values.
Sunday Monday Tuesday Wednesday Thursday Friday Saturday
3. Program should print the values before shifting and after shifting.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
