I
I
Ilkhomjon Matazimov2020-06-11 18:39:22
Python
Ilkhomjon Matazimov, 2020-06-11 18:39:22

How to remove duplicate elements from an array?

Hello!
There is an array, in it it is necessary to remove all repeating elements.

Array example:

pain = ["2", "1", "2", "3", "5", "1", "9"] # и так далее

How to remove duplicate numbers from this array?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2020-06-11
@mr_qpdb

set(pain)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question