None is used to represent the absence of a value

Use None value

In Python None is frequently used to represent the absence of a value, as when default arguments are not passed to a function.


a = None
print a

The code above generates the following result.





















Home »
  Python »
    Data Types »




Data Types
String
String Format
Tuple
List
Set
Dictionary