Data Types in Python:

                             From the name it refers that "Data Types"  Here Data Means "information" and types means "Kinds" we can say that Data Types means Kinds of Data.

Why data?

          Actually our main Motto of making Program is to processing some data.Ex-Lets us we have to stored some data related to some students  (like marks) and also we have to perform some operation on that data .
so that it can easily perform some operation .Like we have to find the average of the marks,percentage of the marks etc.

On what factors data is categorized?

1.Memory
2.Operation
3.Internal Representation.

But In python We don't have to declare the types of the data while using. like C,C++,Java.
ex-a=6 Here,  "="   Don't read it as equal to ,it a assignment operator or simply assign.
     b=8



Types of Data Type 

      There are 14 data type in python

                      Four Built-in Data Type for Number

  •     Integer( int)       ex-6,7,-5,0,10
  •     Floating point numbers(float)       ex-  5.64,-87.64,54.86
  •     Complex Number(complex)         ex 2+5j    here i is represented as j
  •     Boolean(bool)                               ex- True ya False

      

                      Sequence data type it contains a sequence of data)

  •     String(str)         
  •     bytes
  •     bytearray
  •     range
  •     list
  •     tuple
  •     set 
  •    frozen
  •    dict : Like as a map in PHP yaa Java
  •    None

NOTE: We will definitely explore  all the data Types in upcoming post.












Comments

Popular posts from this blog

Pre-defined Function in python

Comments in Python