Title Given numbers x, y, and target, return whichever of x and y is closer to the target.
Catalog Type SLCItem
Persistent ID https://codecheck.io/files/horstmann/codecheck-python-FunctionsWithDecisions-9
Platform Name CodeCheck
Features Code Completion
Description Given numbers x, y, and target, return whichever of x and y is closer to the target. If they have the same distance, return the smaller of the two.
Keywords
,
Author Cay Horstmann
Institution San José State University
Iframe URL https://codecheck.io/files/horstmann/codecheck-python-FunctionsWithDecisions-9
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