Write a program to remove non repeating elements from a list provided by user | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Write a program to remove non repeating elements from a list provided by user

don't just print the no. edit the list

12th Jan 2017, 4:41 PM
Vivek Sharma
Vivek Sharma - avatar
2 Réponses
+ 1
You may give {sets} a try.
12th Jan 2017, 4:44 PM
Álvaro
+ 1
a=[1,1,3,6,5,4,1,5,3,2,5,1] print(list(set(a))
12th Jan 2017, 11:44 PM
ramzi
ramzi - avatar