# 列表推导式a = [i for i in range(100) if not(i % 2) and (i % 3)]print(a)# 字典推导式b = {i: i % 2 == 0 for i in range(10)}print(b)# 集合推导式c = {i for i in [1, 3, 2, 6, 5, 1, 2, 3, 6, 5, 9, 5]}print(c)# 生成器推导式d = (i for i in range(10))print(d) e = sum(i for i in…