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