To write a python program to circulate the n variables using function concept
PC Anaconda - Python 3.7
Define a function to circulate the n variables
Get the value from the user for the lists
Get the value from the user for the number of rotation
Using the slicing concept rotate the list
Print the list
#Program to circulate N values.
#Developed by: Vanitha S
#RegisterNumber: 212222100057
def circulate():
list=eval(input())
n=int(input())
final_list=list[n:]+list[:n]
print("After circulating the values are:",final_list)
Thus the python program to circulate the n variables using function concept was successfully executed