1. 学习
  2. /
  3. 课程
  4. /
  5. Introduction to Data Science in Python

Connected

练习

Logical testing

Let's practice writing logical statements and displaying the output.

Recall that we use the following operators:

  • == tests that two values are equal.
  • != tests that two values are not equal.
  • > and < test that greater than or less than, respectively.
  • >= and <= test greater than or equal to or less than or equal to, respectively.

说明 1 / 共 3 个

undefined XP
    1
    2
    3
  • The variable height_inches represents the height of a suspect. Is height_inches greater than 70 inches?