To write a python program to circulate the n variables using function concept
PC Anaconda - Python 3.7
Define a function circulate().
Get the list from the user.
Get the value from the user for the number of rotation.
Using the slicing concept rotate the list.
print the circulated list.
End the program.
#Program to circulate N values.
#Developed by:Sanjit.P
#RegisterNumber:23002570
def circulate():
value=eval(input())
n=int(input())
result=value[n:]+value[:n]
print("After circulating the values are:",result)Thus the program to circulate the N values is written and verified using python programmming.
