• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
0
Just cast 'set' to your list and work is done. Something like this: >>> print(set([0,1,2,3,4,3,2,1,0])) {0, 1, 2, 3, 4}
14th Sep 2016, 8:44 AM
Textobot
Textobot - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Anyone Have group of learning code?
1 Votes
Theres a lot of weird bugs in the Introduction to C++ course
2 Votes
Why do you start with something in HTML?
2 Votes
Hi I want to learn react.js and I don't have even idea of coding just newbie
0 Votes
Why does range(5) print 0-4 in python
0 Votes
Quiz module
0 Votes
How do I complete this code to make “game over” appear on the screen.
0 Votes
How can create a game
1 Votes
Seniors I need your helpful code for learning easily🙏😔
0 Votes
Sorry for the interruption but i wants to build a os
0 Votes