Login
Loading...
answers.informer.com
Questions
Ask a Question
Windows
Mac
Forum
Interesting questions
Latest questions
Popular questions
Useful answers
New questions
Ask a Question
How can I remove duplicates in array for Python?
0
votes
asked
Jan 25, 2023
by
Danil Vanin
(
170
points)
about
Python
scripting interface
program ide
compilers and interpreters
development
python
windows
mac os
Please
log in
or
register
to add a comment
1
Answer
0
votes
answered
Jan 25, 2023
by
adminos
(
18.7k
points)
selected
Jan 25, 2023
by
Danil Vanin
Best answer
my_list = [1,2,3,4,3,2,1] my_set = set(my_list) print(my_set) # Output: {1, 2, 3, 4}
Please
log in
or
register
to add a comment
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
Similar questions
Can I remove Python safely from my computer?
The 'Open with' feature duplicates my applications every time I install an update. How can I fix this?
how do i remove duplicates
Quick answers
How to use nokia 210 as pc suite?
How to add games in philips tv?
Why stop kmplayer galaxy duos s7562?
How can i registered my mtn f stlink?
How to record video in kmplayer?
...