Title Rotating the List Values
Catalog Type SLCItem
Persistent ID https://pawscomp2.sis.pitt.edu/pcex/index.html?lang=PYTHON&set=py_list_rotate
Platform Name PCEX
Features
Description Construct a program that has a function that receives a list of values and returns the list rotated to the left by 1 position so that the value at the front of the list goes to the back and the order of the other values stays the same. For example, if the list is [1, 2, 3, 4, 5, 6], the program will change it to [2, 3, 4, 5, 6, 1].
Keywords algorithm analysis, classes, data structures, list, stacks
Author Roya Hosseini
Institution University of Pittsburgh
Iframe URL https://pawscomp2.sis.pitt.edu/pcex/index.html?lang=PYTHON&set=py_list_rotate
Protocol PITT, HTML
Protocol URL
License MIT
Programming Language Python
Natural Language en

Preview