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

Зміст курсу

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 !=

Натисніть або перетягніть елементи та заповніть пропуски

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 1
some-alt