What is bool data type good for in Python?

Experience Level: Junior
Tags: Python

Answer

The bool data type can hold True/False value. The boolean variables are defined by the True and False keywords.
Python for beginners
Python for beginners

Are you learning Python ? Try our test we designed to help you progress faster.

Test yourself