In this section you learned to:

def cube_volume(a):
    return a * a * a
message = "hello there"

if "hello" in message:
    print("hi")
else:
    print("I don't understand")
message = "hello there"

if "hello" in message:
    print("hi")
elif "hi" in message:
    print("hi")
elif "hey" in message:
    print("hi")
else:
    print("I don't understand")
x = 1
y = 1

if x == 1 and y==1:
    print("Yes")
else:
    print("No")

Output is Yes since both x and y are 1.

x = 1
y = 2

if x == 1 or y==2:
    print("Yes")
else:
    print("No")

Output is Yes since x is 1.

isinstance("abc", str)
isinstance([1, 2, 3], list)

or

type("abc") == str
type([1, 2, 3]) == lst