Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Boolean Type | Control Flow
Introduction to Data Analysis in Python
course content

Course Content

Introduction to Data Analysis in Python

Introduction to Data Analysis in Python

1. Basics
2. Data Types
3. Control Flow
4. Functions and Modules
5. Introduction to NumPy

bookBoolean Type

Boolean Type: bool.

How to set a boolean variable

12345
a = True b = False print(a) print(b)
copy

Boolean operator examples

OperatorReturns
>=True if a number is greater than or equal to another
<=True if a number is less than or equal to another
==True if two values are equivalent
!=True if two values are not equivalent
&&True if both values are True
!True if the value is False
1
print(4 == 6)
copy
question-icon

Fill in the gaps to receive True everywhere.

10 <=
9 ==

8 !=

Click or drag`n`drop items and fill in the blanks

Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 1
some-alt