- Learn Python in 7 Days
- Mohit Bhaskar N. Das
- 81字
- 2021-07-09 20:40:24
Boolean data type
A Boolean data type generally has only two values 'True' or 'False'. Boolean data type is a sub type of integers.
Syntax:
<variable name>=<'True' or 'False'>
Boolean data types can be referred to as an on and off switch, which has only two values to chose from:

In the preceding example, we try to compare the value of x with the value of y, and when we use the == operator, the value of the Boolean is returned as True.
推薦閱讀
- The Complete Rust Programming Reference Guide
- C語言程序設計(第2 版)
- Getting Started with ResearchKit
- Mastering OpenCV Android Application Programming
- Vue.js前端開發(fā)基礎與項目實戰(zhàn)
- 深入淺出Java虛擬機:JVM原理與實戰(zhàn)
- ASP.NET Core 2 and Vue.js
- Java Web程序設計
- Mastering Linux Network Administration
- The DevOps 2.5 Toolkit
- Visual Basic程序設計實踐教程
- Swift Playgrounds少兒趣編程
- Python算法詳解
- 常用工具軟件立體化教程(微課版)
- Unity 3D/2D移動開發(fā)實戰(zhàn)教程