# 3.17
# a = eval('2*3+1')
# b = eval('hello')
# c = eval('hello'+' '+'world!')
# d = eval('ASCII'.count('I'))
# e = eval('x=5')
# print(a, b, c, d, e)

# 3.18, 3.19
# a, b, c = 3, 4, 5
# if(a < b):
#     print("aOK")
# if(c < b):
#     print("bOK")
# else:
#     print("bNOT OK")
# if(a+b == c):
#     print("cOK")
# else:
#     print("cNOT OK")
# if(a*a + b*b == c*c):
#     print("dOK")

# 3.20
# lst = ['January', 'February', 'March']
# for i in lst:
#     print(i[0:3])

# 3.21
# lst = [2, 3, 4, 5, 6, 7, 8, 9]
# for i in lst:
#     if(i % 2 == 0):
#         print(i, end=' ')

# 3.22
# lst = [2, 3, 4, 5, 6, 7, 8, 9]
# for i in lst:
#     if((i*i) % 8 == 0):
#         print(i, end=' ')

# 3.23
# (a)
# for i in range(2):
#     print(i, end=' ')
# (b)
# for i in range(1):
#     print(i)
# (c)
# for i in range(3, 7):
#     print(i, end=' ')
# (d)
# for i in range(1, 2):
#     print(i)
# (e)
# for i in range(0, 4, 3):
#     print(i, end=' ')
# (f)
# for i in range(5, 22, 4):
#     print(i, end=' ')
