Dictionaries in Python

Dictionaries in Python

In this tutorial, we will discuss about dictionary datatype in python, different operations on dictionaries and built-in methods available for dictionaries. Dictionaries in Python In python, dictionaries is an unordered collection of items. Each item of the dictionary is in the form of key:value pair. Python views a dictionary as a mapping between keys and …

Read more

Sets in Python

Sets in Python

In this tutorial, I am going to discuss about Set datatype in python, different operations which can be performed on sets and built-in functions available in python for sets. Sets in Python Set in python is an unordered collection of elements. It is similar to lists in python but unlike lists every set element must …

Read more

Tuples in Python

Tuples in Python

In this tutorial, I am going to discuss about Tuple datatype in python, different operations on tuples and methods available for manipulating tuples in python. Tuples in Python Tuple is another datatype collection like lists in python. It is also an ordered collection of python objects but lists and tuples are different because lists are …

Read more

Lists in Python

Lists in Python

In this tutorial, I am going to discuss about List Datatype in Python, different operations which can be performed on lists and built-in functions available in python for lists. Lists in Python In python, we do not have arrays like we have in C++ or Java. So, instead of arrays python has lists which are …

Read more

Strings in Python

Strings in Python

In this tutorial, I am going to discuss about String datatype in python, different operations which can be performed on strings and built-in functions available in python for strings. Strings in Python A string is a sequence of characters in python which are enclosed in single quotes ( ‘ ), double quotes ( " ) …

Read more

Numbers in Python

Numbers in Python

In this tutorial, I am going to discuss about Numeric Datatypes in python. There are different numeric datatypes in python like integer, floating-point, complex numbers. We will discuss how to represent binary, octal and hexa-decimal numbers in python and inter-conversion between different numeric datatypes. Numeric DataTypes in Python As we have discussed in the DataTypes …

Read more

Type Conversion in Python

Type conversion in Python

In this tutorial, I am going to discuss about type conversion in python language. When we evaluate any expression it contains different variables and they might be of different datatypes, so we are going to discuss how python handles such situation. Type Conversion Type conversion is the process of converting value of one data type …

Read more

Data Types in Python

Data Types in Python

In this tutorial, I am going to discuss about different Data Types provided in Python and how to use them. Data Types in Python As we know python is an object oriented language that’s why all the data types in python are basically objects. In other words, data in python takes the form of objects …

Read more

Collections module in Python

Collections module in Python

In this tutorial, I am going to discuss about collections module in python. We will discuss about different containers given by the collections module like Counters, OrderedDict, defaultdict, Deque, namedtuple, UserDict, UserList and UserString. Collections module in python The collections module in python provides us with different container datatypes which are used for data storage …

Read more