menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Mastering ...
source image

Medium

1w

read

297

img
dot

Mastering Python Data Types: What Textbooks Won’t Tell You

  • Internally, Python caches small integers from -5 to 256 for faster access.
  • Repeating a string in Python creates a new object each time due to immutability.
  • Python lists over-allocate memory to minimize resizing operations.
  • An empty tuple in Python uses less memory than an empty list.

Read Full Article

like

17 Likes

For uninterrupted reading, download the app