Search this site
Embedded Files
AIMD GPDS Courses
  • Home
  • Courses
  • Contact
AIMD GPDS Courses
  • Home
  • Courses
  • Contact
  • More
    • Home
    • Courses
    • Contact

日本語  ❯

esson 2    ❮    Lesson List    ❮    Top Page

2.1 for Loop

2.2 List Comprehension

❯  2.3  Boolean Operators

2.4 if Statement

2.5 Looping if Statement   

⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺
EXPECTED COMPLETION TIME
❲▹❳  Video   5m 39s
☷  Interactive readings   5m

Making Logic Operations

A Boolean value of True or False is essential for making a conditional statement. Operators such as ==, !=, <, >, <=, and >= can be used for logic operations and will result in a Boolean value.

Using Boolean & Bitwise Operator

Boolean operators such as and, or, and not, can be useful to compare different boolean conditions. 

Some bitwise operators can be used too as the shorter version of boolean operator.

Using in to Check Membership

Checking whether a value appear or not in a list can be important. Using in operator, we can check whether an item is in a list. 

We can also use not if we want to check if the item is not in a list.

©2023. All rights reserved.  Samy Baladram,
Graduate Program in Data Science - GSIS - Tohoku University
Google Sites
Report abuse
Page details
Page updated
Google Sites
Report abuse