Question: 5. Create a python functions that rotates the elements of a list by one position. Consider a function rotate(a list, direction) that takes as arguments
5. Create a python functions that rotates the elements of a list by one position. Consider a function rotate(a list, direction) that takes as arguments the list to rotate, and the direction (left or right) of rotation. Rotate the list in place.
post full input and its output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
