Title
Given a list of integers, return a list of length 2, each being a list.
Catalog Type
SLCItem
Persistent ID
https://codecheck.io/files/horstmann/codecheck-python-TwoAnswers-5
Platform Name
CodeCheck
Features
Code Completion
Description
Given a list of integers, return a list of length 2, each being a list. The first one holds the elements with even positions, and the second one holds the elements with odd positions of the original list.
Keywords
Lists - Simple Exercises
,
Two Answers
Author
Cay Horstmann
Institution
San José State University
Iframe URL
https://codecheck.io/files/horstmann/codecheck-python-TwoAnswers-5
Protocol
SPLICE, LTI 1.1
Protocol URL
https://codecheck.io/files/horstmann/codecheck-python-TwoAnswers-5
https://codecheck.io/lti/problem/files/horstmann/codecheck-python-TwoAnswers-5
License
https://creativecommons.org/licenses/by-nc-nd/4.0/
Programming Language
Python
Natural Language
en
Preview
SPLICE Output