Removing Duplicate List From Python

Introduction

In this blog, I am going to explain about removing duplicate lists from Python. It will be used to display the output in the Run module. If we give the same words, repeated,  it will be used to remove the duplicate list from the sequence.

Software Requirement

Python3.5.2.

Simple Programming

  1. print("Welcome To C#corner...")   
  2. print("Removing Duplicates :")   
  3.   
  4. lists=["Karthiga","C#","C#","Corner","corner","Author"]   
  5. print(lists)   
  6. list_1=set(lists)   
  7. print(list_1)   
Explanation

This blog is used to display the output as it helps to remove the duplicate lists from the sequences.

Output

Welcome To C#corner...

Removing Duplicates

['Karthiga', 'C#', 'C#', 'Corner', 'corner', 'Author']
{'corner', 'Author', 'C#', 'Karthiga', 'Corner'}

 

Ebook Download
View all
Learn
View all