Chapter 2 Operators, Truthy and Falsy Values

Types of operators

  1. Arithmetic operators: + - * / % ** (return a number)
  2. Assignment operators: =, +=, -=, *=, /=, **=
  1. Membership operators
  1. Comparison operators: ==, !=, >, <, >=, <= (return a boolean value)
  1. Logical operators (return a boolean value)
  1. Bitwise operators
  1. Identity operators: 少用到(不講)

Truthy and Falsy Values in Python