Variable Types

In Python, variables are used to store data, and the language supports several built-in data types that you can use for your variables. 

Here’s a breakdown of the primary types:

  • Numeric Types
  • Sequence Types
  • Mapping Type
  • Set Types
  • Boolean Type
  • Binary Types

Numeric Types

  • Integer (int)
  • Float (float)
  • Complex (complex) 

Sequence Types

  • String (str)
  • List (list)
  • Tuple (tuple)
  • Range (range)

Mapping Type

  • Dictionary (dict)

Set Types

  • Set (set)
  • Frozen Set (frozenset)

Boolean Types

  • Boolean (bool)

Binary Types

  • Bytes (bytes)
  • Byte Array (bytearray)
  • Memory View (memoryview)

Interested in exploring more about Variables in Python? Discover detailed examples for each variable here.

error:Content is protected !!
Scroll to Top