0 of 464 solved
Write a function `find_common_elements(*lists)` that returns the values shared by every input list. Return each shared value once, in the order it first appears in the first list. #### Example Input: List 1: `[1, 2, 3, 4, 5]` List 2: `[4, 5, 6, 7, 8]` List 3: `[3, 4, 5, 9, 10]` Output: `[4, 5]`
def find_common_elements(*lists):
"""
Finds the common elements across multiple lists.
Args:
*lists (list): The input lists.
Returns:
list: A new list with the common elements.
"""
# TODO: Implement the find_common_elements function
pass