YUNOVA · Python programming · Module 7: Dictionaries & Sets
Python me set aur duplicate hatana
Python me set aur duplicate hatana
Key points
- Set में हर चीज़ सिर्फ़ एक बार रहती है; दोहराव अपने आप हट जाता है।
- List को set() में डालकर duplicate हटाना सबसे आसान तरीक़ा है।
- Set में क्रम तय नहीं होता, इसलिए index से चीज़ें नहीं निकलतीं।