What is a handle in the context of python text files?

Hi, I am a beginner learning python. I am really struggling to grapple with the concept of a ‘handle’, what is it used for?

Thank you!

Welcome to the forum @RebbyG

From the net:

A handle is essentially a variable that can hold the location of each object in memory. That means each handle points to a unique object.

Happy coding

1 Like

Thank you! Are handles and pointers the same thing?