To write a python program to circulate the n variables using function concept
PC Anaconda - Python 3.7
Get the input from the user.
Create a function called circulate
Get the value from the user for the number of rotation
Using the slicing concept rotate the list
Circulate the input for given number of times.
End the program
#Program to circulate N values.
#Developed by: Samyuktha.S
#RegisterNumber:22005276
def circulate():
l=eval(input())
n=int(input())
l=l[n:]+l[:n]
print("After circulating the values are:",l)
Thus the circulating n variables is successfully executed.