DEV Community

Narasimma Radhakrishnan
Narasimma Radhakrishnan

Posted on

Python Data Types...!!!

What are Data Types in Python?
A data type defines what kind of value a variable can store.

name = "Narasimma"
age = 22
height = 5.8
is_student = True

Enter fullscreen mode Exit fullscreen mode

Types of Data Types in Python:

  1. Numeric Types
    int, float, complex

  2. Text Type
    str

  3. Sequence Types
    list, tuple, range

  4. Mapping Type
    dict

  5. Set Types
    set, frozenset

  6. Boolean Type
    bool

Top comments (0)