# https://www.practicepython.org/exercise/2014/03/19/07-list-comprehensions.html

# Let’s say I give you a list saved in a variable: a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100].
# Write one line of Python that takes this list a and makes a new list that has only the even elements of this list in it.

a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
result = [item for item in a if item % 2 == 0] # [<expression> for ELEMENT in LIST [if <expression>]]

print(result)
059b41fa2aad56ab31fb7e4061e55dfe2317fd5b
<mask token>

<mask token>
print(result)

a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
result = [item for item in a if item % 2 == 0]
print(result)

# https://www.practicepython.org/exercise/2014/03/19/07-list-comprehensions.html

# Let’s say I give you a list saved in a variable: a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100].
# Write one line of Python that takes this list a and makes a new list that has only the even elements of this list in it.

a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
result = [item for item in a if item % 2 == 0] # [<expression> for ELEMENT in LIST [if <expression>]]

print(result)