Pergunta de entrevista da empresa LimeChat

Q1: Implement a function deduplicate_users(users) that removes duplicates from a list of user emails. Emails may vary in case (e.g., "Alice@example.com" and "alice@example.com" should be treated as duplicates). Return a list of unique emails in lowercase. """ """ Q2: What is the output of this code? Why? """ def append_to(element, to=[]): to.append(element) return to # print(append_to(1)) # ? # print(append_to(2)) # ? """ Q3: Write a function safe_get(d: dict, key: str) that safely returns a key's value or 'N/A' if the key is missing. Also ensure d is actually a dict. """