# lst = [i * i for i in range(50) if i % 3 == 0] lst = [i ** 2 for i in range(50) if i % 3 == 0] print(lst)