Data Structure is a way of organizing and storing data in an
efficient way.Data Structures are divided into two categories :-
-
Primitive Data Structures
-
Non-Primitive Data Structures
Primitive data structures are very simple and lucid one that helps in
data manipulation and contain simple and pure values.
-
Integers
-
Float
-
Strings
-
Boolean
Integers are whole numbers that ranges from – infinity to +
infinity.It includes the numbers like -4 ,2 ,0 etc.It does not
include numbers with fractional part.
Float is used for the numbers having decimal points like 4.11 or 3.13
etc.
Python recognizes both single quotes (') and double quotes (")
as valid ways to delimit a string value. The word delimit means to
determine the boundaries or limits of something.You may not mix the
two kinds of quotation marks when used to delimit a particular
string.
This built-in data type that can take up the values:
True
and False
, which often makes them
interchangeable with the integers 1 and 0. Booleans are useful in
conditional and comparison expressions, just like in the following
examples: