To write a python program to circulate the n variables using function concept
PC Anaconda - Python 3.7
Get the value from the user for the number of rotation.
Using the slicing concept rotate the list.
Print the result(Rotated list).
End of program.
def circulate():
n=int(input())
l=[10,20,30,40,50,60]
l=l[n:]+l[:n]
print("After circulating the values are:",l)
Thus the values are circulated succefully.