To write a python program to circulate the n variables using function concept
PC Anaconda - Python 3.7
Commence the program
Get the value from the user for the number of rotation
Get the value from the user for the number of rotation
Using the slicing concept rotate the list
Print the rotated list
End the program
#Program to circulate N values.
#Developed by: Syed Abdul Wasih H
#RegisterNumber: 21002291
def circulate():
n=int(input())
l=[10,20,30,40,50,60]
a=l[n:]+l[:n]
print("After circulating the values are:",a)
The variables are rotated successfully.