Your question is Check If Element Exists. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Khan Academy may inspect an unsorted array of lesson identifiers while processing a learner's activity. Given an integer array and a target integer k, determine whether k appears in the array.
Return True if the target is present and False otherwise. Because the array is unsorted, do not assume that binary search can be used.
Implement contains_value(values, k).
values, a list of integers, and k, an integer target.values equals k.def contains_value(values, k):