Skip to main content

Posts

Featured

Python program to remove duplicates from a list.

Write a Python program to remove duplicates from a list. a = [10,20,30,20,10,50,60,40,80,50,40] b=[] for n in a:     if n not in b:         b.append(n)    print(b)         

Latest Posts

Dictionaries

Program to generate 8-digit Password

HAPPY NEW YEAR

Program to print Pascal's Triangle

Program to calculate mean of a list of numbers

Program to sort a list in ascending and descending order

Program to insert or delete elements in a list

Program to append a List based on the type to be appended

Program to create a 2D List

Program to print elements of a List in separate lines along with both indexes of the element