Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.2K+ articles
JavaScript
12.2K+ articles
School Learning
11.5K+ articles
Java
10.8K+ articles
Python-Built-in-functions
139+ articles
python-set
80+ articles
Python-set-functions
3 posts
Recent Articles
Popular Articles
set() Function in python
Last Updated: 26 February 2025
set() function in Python is used to create a set, which is an unordered collection of unique elements. Sets are mutable, meaning elements can be added or removed after cre...
read more
Python
python-set
Python-Built-in-functions
Python-set-functions
Python Set Methods
Last Updated: 12 November 2021
A Set in Python is a collection of unique elements which are unordered and mutable. Python provides various functions to work with Set. In this article, we will see a list...
read more
Python
python-set
Python-set-functions
Python Set discard() Function
Last Updated: 30 June 2023
Python discard() is a built-in method to remove elements from the set. The discard() method takes exactly one argument. This method does not return any value.Example: In t...
read more
Python
Picked
python-set
Python-set-functions
python
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !