Lab 8.2a - Can I or Can't I

In Your Lab Worksheet

Predict if each of the following examples will produce a True or False output. Check your answers in interactive mode.

Example 1

    a = 100
    b = "science"
    a > 75 and b == "science"

Example 2

    a = 100
    b = "science"
    a > 75 and b != "science"

Example 3

    a = 100
    b = "science"
    a > 75 or b != "science"

Example 4

    a = 100
    b = "science"
    c = True
    not c and a > 75 and b == "science"

Last updated

Was this helpful?