To write a python program to circulate the n variables using function concept
PC Anaconda - Python 3.7
Get two values from the user
assign the value of second variable to a temporary variable.
define the formula Get the value from the user for the number of rotation
print the result Using the slicing concept rotate the list
finally print the result
#Program to circulate N values.
#Developed by: GIFTSON RAJARATHINAM N
#RegisterNumber:212222233002
def circulate():
a=eval(input())
n=int(input())
a=a[n: ]+a[ :n]
print('After circulating the values are:',a)
Thus circulating the values of n variables is successfully executed.