To write a python program to circulate the n variables using function concept
PC Anaconda - Python 3.7
Get the list of values from the user
Get the value from the user for the number of rotation
Declare a function starting with a keyword 'def'
Within the function print the output statement
Using the slicing concept rotate the list
Display the output
#Program to circulate N values.
#Developed by:Preethi.A.A
#RegisterNumber:22008332
def circulate():
circul = l[n:]+l[:n]
print('After circulating the values are:',circul)
l=eval(input())
n=int(input())
Thus,the program to circulate the n variables using fuction is executed successfully.