To write a python program to circulate the n variables using function concept
PC Anaconda - Python 3.7
Create a function to rotate a list of elements
Define a list of n elements
Get the value from the user for the number of rotation
Using the slicing concept rotate the list
Print the result list the values would be circulated according to the number of rotation value given by the user
End the program
#Program to circulate N values.
#Developed by: GAUTHAM M G
#RegisterNumber:21000182
def circulate():
l=[10,20,30,40,50,60]
n=int(input())
result=l[n:]+l[:n]
print("After circulating the values are:",result)
Thus the circulation of n variables using function concept are successfully executed.