I’m the type of…

--Originally published at Welcome to the Heaven

Okay, the basic data types in python 3 divides in 4:

  1. Boolean
  2. Numeric
  3. Sequences
  4. Mapping

 

The first one, Boolean is useful in conditional expressions and we used to the built-in values True and False.Boolean-data-type-in-java-programming

 

 

The second, Numeric divides in 3:

Screen Shot 2016-09-03 at 4.51.49 PM

The third, Sequences  divides in 3:

  • str = String; sequence of Unicode characters
  • byte: a sequence of integers in the range of 0-255
  • byte array: like bytes, but mutable
  • list = Can be mutable
  • tuple = Is immutable(need less space)

And the Fourth:

  • dict = Python dictionaries

 

This Basic Data Types is only for Python 3, not Python 2

 

If you want to read more about this you can visit:

https://docs.python.org/3/library/stdtypes.html

https://en.wikibooks.org/wiki/Python_Programming/Data_Types

Picture:http://img.c4learn.com/2012/03/Boolean-data-type-in-java-programming.jpg