To write a python program to circulate the n variables using function concept
PC Anaconda - Python 3.7
Start the program
Get the input from the user using eval(input())
Get the value from the user for the number of rotation
Using the slicing concept rotate the list
Using the concatination operation display the entire rotated list
Stop the program
#Program to circulate N values.
#Developed by: Sasinthar.P
#RegisterNumber:23012532
def circulate():
list1=eval(input())
n=eval(input())
result=list1[n:]+list1[:n]
print("After circulating the values are:",result)
The output is successful