MOST IMPORTANT DATA TYPES OF PYTHON

Raghav Jha
2 min readMay 28, 2022
DATA TYPES

Variable Can Store different Data Types. First, we understand variables and then we go for the data types par

Variable

variables basically store the value of any data type formed like string, numeric, boolean, or binary. Python has a special feature that we do not define the type of the variable.

Variable

SEQUENCE

Sequences are used to arrange multiple values at once. The two most important sequence type of python is list and tuple. Let's discuss the list and Tuple.

List

the list is basically a sequence data structure used to store multiple variables at once. In the list, we used [] to store the value.list is mutable once the created the can modify

Example

TUPLE

A tuple is basically a built-in type of data structure that is used to store multiple values at once. Tuples are immutable which means we are not changing the value inside the tuple. a tuple can define (‘x’,’y’).the can also define without a bracket.

String

A string is basically the combination of multiple character in a sequence formed

SETS

sets are used to store the value. the are unordered collections of the object. sets are unordered and unique elements. sets allow the duplicate element.

BOOLEAN

Boolean is used in programing language to define binary Value which means the will be True and False.

DICTIONARY

the dictionary is used to store the key-value pair. the dictionary is also used in mapping because key and value are mapped to each other.

Numeric

the numeric data type is used to store the value in a numeric format that could be float, integer, or complex.

float:=1.2
int:=1,2
complex=a+i2

Thankyou

--

--