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