Python Datatypes

Related Tags

Tutorials

Python Set

Python Sets are unordered collections of unique elements. Learn about Set datatype in Python, creating and modifying Sets and other useful Set operations available. 1. What is Set A Set in Python is: an unordered collection of unique hashable objects unindexed collection written with curly brackets or set() constructor Internally, …

Python Dictionary

A Dictionary in Python is a collection data type which is unordered, mutable and indexed. In Python, dictionaries are written with curly brackets { }, and store key-value pairs. Dictionary keys should be the immutable Python object, for example, number, string, or tuple. Keys are case sensitive. Duplicate keys are …

Python – Tuples

In Pyhton, a tuple is similar to list except it is immutable and are written with optional round brackets. A Tuple is: immutable ordered heterogeneous indexed (starts with zero) written with round brackets (optional but recommneded) is faster during iteration, since it is immutable Tuples are useful for creating objects …

Python List

In Python, lists are ordered, indexed (indices start at 0), mutable, heterogeneous (items need not be of the same type) and written CSV in square brackets.

Python Strings

Larn about Python string datatype and its functions. Learn how to format, align, find length and other such useful programs and exercises.

Python Integer (with Examples)

In Python, the int data type (integer) represents whole numbers that can be positive or negative and can have unlimited precision.

Python OrderedDict

Learn the differences between a dictionary and OrderedDict, and also how to create, update and delete the items from the Python OrderedDict.

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.