None Data Type in Python

There are different data types available in Python. Data types determine the kind or type of value is stored in a variable. There are five built in data types in Python.

Built in datatypes

  1. None Type
  2. Numeric Type
  3. Sequence Type
  4. Sets
  5. Mapping

None Data Type

It represent an object that does not contain any value. Similar to null object in Java. In Python only one None object can be used. It is use as a default argument inside a function. When a function is called with no argument, default None value is passed. In Boolean, None represent false value.

Advertisement

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s