Your question is Writing a Function to Solve a Problem. 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.
Write a function to solve a concrete problem relevant to Autoscience’s software needs.
Implement deduplicate_values(values) to return a new list containing each value once, preserving the order of its first appearance. The input contains integers, and the output must not modify the input list.
Signature: def deduplicate_values(values):
Input: A list of integers.
Output: A new list of unique integers in first-seen order.
def deduplicate_values(values):