To write a python program to circulate the n variables using function concept
PC Anaconda - Python 3.7
Create a function to cirulate the variables
Initialize a list from the user using eval
Get the value from the user for the number of rotation
Using the slicing concept rotate the list
We do this initializing a variable l1 and adding the values before index and after the index in the list.
Print the value of l1
#Program to circulate N values.
#Developed by: Meyyappan.T
#RegisterNumber:23000788
def circulate():
l=list(eval(input()))
n=int(input())
l1=l[n:]+l[:n]
print("After circulating the values are:",l1)
Thus the python program for circulate the values of n variables is executed successfully