
Implement dedupe_keep_first, which returns the strings of values without duplicates, each one kept where it first appears and spelled as it was.
dedupe_keep_first(["pear", "fig", "pear", "kiwi", "fig"], False)['pear', 'fig', 'kiwi']dedupe_keep_first(["Tea", "tea", "TEA", "Mate"], True)['Tea', 'Mate']dedupe_keep_first(["Tea", "tea", "TEA", "Mate"], False)['Tea', 'tea', 'TEA', 'Mate']dedupe_keep_first([], True)[]dedupe_keep_first.py
Run the tests to grade your code
Implement dedupe_keep_first, which returns the strings of values without duplicates, each one kept where it first appears and spelled as it was.
dedupe_keep_first(["pear", "fig", "pear", "kiwi", "fig"], False)['pear', 'fig', 'kiwi']dedupe_keep_first(["Tea", "tea", "TEA", "Mate"], True)['Tea', 'Mate']dedupe_keep_first(["Tea", "tea", "TEA", "Mate"], False)['Tea', 'tea', 'TEA', 'Mate']dedupe_keep_first([], True)[]dedupe_keep_first.py
Run the tests to grade your code
Variables will appear here