BASIC PYTHON



Data Type


Data type represents the type of data a Variable or a Literal is referring to. Each data type has specific characteristics and operations associated with it. In Python, there are various data types, including number, string, boolean, list, tuple, and dictionary.

Mutable Objects

Mutable data objects are objects that can be changed after they are created. It is possible to add, remove, or modify elements within these data types. Example of mutable data types: List, Set and Dictionary.

Immutable Objects

An Objects whose values cannot be changed after they are created are called immutable objects. To change the value, a new object is created. Example of immutable data types: Number (Integer, Float), String, and Tuple.

Integer

Float

Complex

Boolean

A boolean data type can assume one of the two possible values : True or False.

Sequence

An ordered collection of items or elements which includes several built-in types as String, List, and Tuple. Values in the sequence are called elements/items. Each element in a sequence has a unique index.

String

For more about string

List

For more about list

Tuple

For more about tuple

Mapping

Mapping is an unordered data type in Python. Currently, there is only one standard mapping data type in Python called dictionary.


Dictionary

For more about Dictionary

learn | code |crack

Learn With Me

Terms | Privacy | Security | Do not share your personal information