---
title: "Discussion on \"Overview of data types and objects\" | Hashnode"
description: "Discussion on \"Overview of data types and objects\". Contains summary from the Book* :  Python Data Structures and Algorithms \nIn the last blog, we discussed about variables. We learned that everything in Python is an object and variables are basically pointers to these memory locations containing diff..."
url: "https://hashnode.com/posts/overview-of-data-types-and-objects/60b827e02102c86fd6d19457"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Overview of data types and objects](https://spanthee.hashnode.dev/overview-of-data-types-and-objects?utm_source=hashnode&utm_medium=feed)

Contains summary from the Book\* : Python Data Structures and Algorithms In the last blog, we discussed about variables. We learned that everything in Python is an object and variables are basically pointers to these memory locations containing diff...

Jun 3, 2021 · 4 min read · spanthee.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#data-structures](https://hashnode.com/tag/data-structures)
-   [#algorithms](https://hashnode.com/tag/algorithms)

## Written by

[Saurav](https://hashnode.com/@spanthee)

@spanthee · Tyler, Texas.

  
[View profile](https://hashnode.com/@spanthee)

Learning something new, everyday.

I am currently a student studying CS at UT Tyler.

## Responses 1

Markdown supported · ⌘↵ to post

[Gaurab Panthee](https://hashnode.com/@igaurab)

[Jan 9, 2022](https://hashnode.com/posts/overview-of-data-types-and-objects/60b827e02102c86fd6d19457/comment/61db003c3ce4b2377adfd424)

Didn't know that boolean were stored as 2-bytes. Seems there is a reason \[0\] for that.

Also, I tried to see size of an integer in python using `sys.getsizeof()` \[1\] and the number was exceptionally large: 24 byte. This has to do with integer data type being represented as a class \[2\] as you mentioned above.

References: [0](https://stackoverflow.com/questions/4626815/why-is-a-boolean-1-byte-and-not-1-bit-of-size) [1](https://stackoverflow.com/questions/449560/how-do-i-determine-the-size-of-an-object-in-python) [2](https://stackoverflow.com/questions/10365624/sys-getsizeofint-returns-an-unreasonably-large-value)
