To write a python program to circulate the n variables using function concept
PC Anaconda - Python 3.7
Step 1: Define a function circulate.
Step 2: Take l and n as inputs.
Step 3: Get the value from the user for the number of rotation
Step 4: Using the slicing concept rotate the list
Step 5: Using print function, print the results.
Step 6: End the program
create a function for circulate
get the input of list
Get the value from the user for the number of rotation
Using the slicing concept rotate the list
print the circulated list
call the function for execution
#Program to circulate N values.
#Developed by: HARISH RAGAVENDRA S
#RegisterNumber:22008967
def circulate():
l=eval(input())
n=int(input())
l=l[n:]+l[:n]
print("After circulating the values are:",l)
thus the program executed sucessfully