Title Modifying a List
Catalog Type SLCItem
Persistent ID https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=PYTHON&set=py_list_change&ch=py_list_swap_adjacent_elements
Platform Name PCEX
Features
Description Construct a program that swaps pairs of adjacent elements of the list. For example, if the list is [1, 2, 3, 4, 5, 6], the program will change it to [2, 1, 4, 3, 6, 5].\nThis program assumes that the list has always an even number of elements.
Keywords list
Author Kamil Akhuseyinoglu
Institution University of Pittsburgh
Iframe URL https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=PYTHON&set=py_list_change&ch=py_list_swap_adjacent_elements
Protocol PITT, HTML
Protocol URL
License MIT
Programming Language Python
Natural Language en

Preview