To write a python program to circulate the n variables using function concept
PC Anaconda - Python 3.7
Define the function circulate.
To calculate, enter the formula
Get the value from the user for the number of rotation
Using the slicing concept rotate the list
print the values after circulating.
end the program
#Program to circulate N values.
#Developed by:vasundra sri.R
#RegisterNumber:212222230168
def circulate():
l=eval(input())
n=int(input())
l=l[n: ]+l[ :n]
print("After circulating the values are:",l)
Thus, a python program to circulate the n variables using function concept is successfully executed and displayed.