I have the following list:
values = [
['registrationController', 'regBean', 'firstName'],
['registrationController', 'regBean', 'surname'],
['registrationController', 'regBean', 'userName'],
['registrationController', 'regBean', 'password'],
['registrationController', 'regBean', 'confirmPassword'],
['registrationController', 'regBean', 'emailAddress'],
['registrationController', 'regBean', 'confirmEmail'],
['registrationController', 'regBean', 'securityQuestionAndAnswerOne', 'question'],
['registrationController', 'regBean', 'securityQuestionAndAnswerOne', 'answer'],
['registrationController', 'regBean', 'securityQuestionAndAnswerTwo', 'question'],
['registrationController', 'regBean', 'securityQuestionAndAnswerTwo', 'answer'],
['registrationController', 'regBean', 'securityQuestionAndAnswerThree', 'question'],
['registrationController', 'regBean', 'securityQuestionAndAnswerThree', 'answer'],
['registrationController', 'regBean', 'tAndCAccepted']
]
I am trying to figure out how I can remove values that are preset in all off this lists and keep the values after a certain point when they become uniqe to get something like this:
unique_values = [
['firstName'],
['surname'],
['userName'],
['password'],
['confirmPassword'],
['emailAddress'],
['confirmEmail'],
['securityQuestionAndAnswerOne', 'question'],
['securityQuestionAndAnswerOne', 'answer'],
['securityQuestionAndAnswerTwo', 'question'],
['securityQuestionAndAnswerTwo', 'answer'],
['securityQuestionAndAnswerThree', 'question'],
['securityQuestionAndAnswerThree', 'answer'],
['tAndCAccepted']
]
Any ideas how I could achive this? I had tried various ways but can't really get close to a working solution.