The discard() method in Python removes a specified element from the Set. It works same as remove() method, however there is a difference between remove()… [Read More]
Python Set remove() Method with examples
The remove() method in Python searches for the specified element in the given Set and removes it. If the specified element does not exist in… [Read More]
Python Set add() Method with examples
Python Set add() method is used to add an element to a Set. Since Set doesn’t allow duplicates, if you try to add an already… [Read More]
Python Sets
Set is an unordered and unindexed collection of items in Python. Unordered means when we display the elements of a set, it will come out… [Read More]
Python Data Types
Data type defines the type of the variable, whether it is an integer variable, string variable, tuple, dictionary, list etc. In this guide, you will… [Read More]
Python Keywords and Identifiers with examples
In this article, we will discuss Keywords and Identifiers in Python with the help of examples. What is a Python Keyword? A python keyword is… [Read More]
Python chr() function with examples
The chr() function in Python accepts an integer which is a unicode code point and converts it into a string representing a character. Python chr()… [Read More]
Python ord() function with examples
The ord() function in Python accepts a string of length 1 as an argument and returns the unicode code point representation of the passed argument…. [Read More]
Python ascii() Function with examples
The ascii() Function in Python returns readable representation of an object (String, tuple, list, dictionary etc.). In this tutorial we will see the usage of… [Read More]
Python any() Function with examples
Python any() function accepts iterable (list, tuple, dictionary etc.) as an argument and return true if any of the element in iterable is true, else… [Read More]