Say I have a function
parameter 1 - a list of strings, each string element is a friend's email parameter 2 - a string, a friend's email you'd should to add to the list or if empty, do not add (just clean the list and remove repeats)
def email_list(previous_emails, new_email):
and this list of emails is used ['media@gmail.com', 'carpool@gmail.com', 'marcopolo@gmail.com', 'MEDIA@gmail.com'] but it just prints this list again instead of just the first 3 emails.
I tried to use different methods i found on here but nothing is really getting rid of the duplicates, it just keeps printing the orginal list.