Step through a few exercises to see if the Python evaluation shown agrees with your understanding of the chapter.


Expression Exercises

a = "abcd" + ("mnop")
b = "absolute"[9-5]
c = "and" in "or" or "or" != "and"
d = "easy" in ("yes we ease"*2)
e = "easy" in (2*"yes we eas")
f = 1*2*3*4*5/10
g = 1/2/3*3*2*1
h = 1.0/2/3*3*2*1
i = [10-9,8-6,5-2][4-7]