Python : Programming Language

Basic Data Types

In any programming language, there is a way to store information in computer memory. Suppose we want to find out sum of two numbers, then we need to get those numbers as input and store them in memory to carry out the calculation and again the result could be stored in some memory location and shown as output on screen.

Data storage is a feature provided by every programming language using which we store data in computer's memory and that is marked by a given name which we write in code for our convenience. This naming of memory address helps us to work smoothly without going deeper into the hardware and operating system's mechanism of memory management and we feel like solving an algebra problem for example x=3; y=4; sum=x+y;

Usually in any programming language there are two type of Data storage based on the capacity to edit/change the information: Variables and Constants

Variables are the data storage which could be changed or assigned new data/information, as and when needed.

Constants are the data storage which can not be changed or assigned once it is initialised or defined.

In Python, Constants are not present and also there is no specific data storage type. Python does not need a data type specifier for any variable.

Basic Data Types in Python