Python - Data Type None object

Introduction

Python provides a special object called None, which is always considered to be false.

None is a special data type in Python and serves as an empty placeholder.

It is much like a NULL pointer in C.

To preallocate a 100-item list such that you can add to any of the 100 offsets, you can fill it with None objects:

L = [None] * 100 

print( L )