Title
Given a list of integers and a value, return the position of the element that is closest to the value.
Catalog Type
SLCItem
Persistent ID
https://codecheck.io/files/horstmann/codecheck-python-FindingElements-4
Platform Name
CodeCheck
Features
Code Completion
Description
Given a list of integers and a value, return the position of the element that is closest to the value. If there is more than one, return the position of the first one.
Keywords
Lists - Simple Exercises
,
Finding Elements
Author
Cay Horstmann
Institution
San José State University
Iframe URL
https://codecheck.io/files/horstmann/codecheck-python-FindingElements-4
Protocol
SPLICE, LTI 1.1
Protocol URL
License
https://creativecommons.org/licenses/by-nc-nd/4.0/
Programming Language
Python
Natural Language
en