How to remove duplicates from list including original one in Python?
Eg:- a=["a", "g", "f", "g", "s", "f"] Final list should be , ["a", "s"]
Here's the solution in case you haven't solved it yet. https://code.sololearn.com/cZt66Hiu3e5w/?ref=app
Pls use the description section to post ur try(code) so that we can help with that.
Hint: Try to build a dictionary whose keys are the unique elements of this list and whose values are the frequencies of each letter. Once you have done that, retrieve the keys that have zero frequencies.
Ramdas Pawar did you solve it?
Duplicates can be removed i.e. as in this example: https://code.sololearn.com/cskwrdXNy0lL/?ref=app
Problem Statement Given two integers a and b, your task is to calculate and print the following four values:
Please help, any idea?