What are datatypes ? Discuss the different types of datatypes in python

Numeric data types: numeric data type is used to hold numeric values like; int, float, complex

String data types: The string is a sequence of characters. strings are represented by single quote and double quotes

Sequence types: list, tuple, range
Lists are just like the arrays, declared in other languages which is a ordered collection of data.

Tuples can contain any number of elements and of any datatype (like strings, integers, list, etc.).
Binary types: bytes, memory Tuples are immutable

Mapping data type: dictionary is an unordered sequence of data of key-value pair form. It consists of key value pairs

Boolean type: bool it use to find true or false

Set data types: set , Set is an unordered collection of data type that is iterable, mutable and has no duplicate elements

1 Like

keep it up @kavinkumar300799 , very nice.

1 Like