Data Types

Last Updated : 11th August 2025


The type of data stored in a variable is called its data type.Why need 🤔?

Hinglish Tip 🗣: Jaise ek container me hm different different item store kr shkte hai aur ushka kuch nam hota hai e.g a container of Water, a container of fruits, a container of vegetables etc.Yaha container ek variable hogya aur water, fruits, vegetables ek data type.

In Python, Data Types are classified into three categories:

  1. Immutable Data Types
  2. Mutable Data Types
  3. Special Data Types

Immutable Data Types

Data which cannot be changed once it is created, called Immutable Data Types.

Examples of Immutable Data Types:

Mutable Data Types

Data which can be changed once it is created, called Mutable Data Types.

Examples of Mutable Data Types:

Special Data Types

Data which is neither Immutable nor Mutable, called Special Data Types.

Examples of Special Data Types:

  • None