Skip to content

swathidd/GitUp

 
 

Repository files navigation

Circulate-the-values-of-N-variables

Aim:

To write a python program to circulate the n variables using function concept

Equipment’s required:

PC Anaconda - Python 3.7

Algorithm:

Step 1: To write a python program to circulate the n variables using function concept

Step 2: PC Anaconda - Python 3.7

Step 3: Get the value from the user for the number of rotation.

Get the value from the user for the number of rotation

Step 4: Using the slicing concept to rotate the list.

Using the slicing concept rotate the list

Step 5: Add coding to the input value.

Step 6: Print the coding to get answer.

Program:

''' #Program to circulate N values. #Developed by:D.swathi #RegisterNumber:22003343 def circulate(): l=eval(input()) n=int(input()) l=l[n:]+l[:n] print("After circulating the values are:",l) '''

OUTPUT:

output

Result:Thus,the program to circulate the n variables using fuction is executed successfully.

About

The Git interface you've been missing all your life has finally arrived.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Objective-C 99.3%
  • Other 0.7%