Title Given a string, return the string with the middle two characters swapped if it has even length, and the middle three characters swapped if it has odd length.
Catalog Type SLCItem
Persistent ID https://codecheck.io/files/horstmann/codecheck-python-StringsNoLoops-3
Platform Name CodeCheck
Features Code Completion
Description Given a string, return the string with the middle two characters swapped if it has even length, and the middle three characters swapped if it has odd length.
Keywords
,
Author Cay Horstmann
Institution San José State University
Iframe URL https://codecheck.io/files/horstmann/codecheck-python-StringsNoLoops-3
Protocol SPLICE, LTI 1.1
Protocol URL
License https://creativecommons.org/licenses/by-nc-nd/4.0/
Programming Language Python
Natural Language en

Preview

SPLICE Output