To write a python program to circulate the n variables using function concept
PC Anaconda - Python 3.7
Get the n values from the user
Circulate the values of n variables
Get the value from the user for the number of rotation
Using the slicing concept rotate the list
Print both the values it would be circulated
Print both the values it would be circulated
#Program to circulate N values.
#Developed by: P.Sri Varshan
#RegisterNumber:22008051
def circulate():
circul=l[n:]+l[:n]
print("After circulating the values are:",circul)
l=eval(input())
n=eval(input())
Thus the circulating the values of n variables are successfully executed