Python Data Types
Definition A datatype represents the type of data stored in computer memory or variable. The datatypes which are already available in Python are called Built-in datatypes, and that created by programmer is called User-defined datatype Now we will study each datatype with examples. Built-in Datatype Their are 5 different types of Built-in datatype: None Type Numeric Types Sequence Sets Mapping None Type The 'None' datatype in Python represents an object that does not contain any values. Same like 'null' in Java. In Python only one None object is provided. One of it's use is, it can be used inside function as a default value to arguments. While calling function no value is passed, then the default value taken is 'None'. Numeric Types The sub-Types of Numeric datatype is int (integer) float (decimal point number) complex (real and imaginary number) bool (Boolean) Integer (int) As the name suggests the variab...