<filename>07_list_comprehensions.py
"""
Practice - 7
"""

if __name__ == '__main__':
	a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
	B = []
	for x in a: 
		if x%2 == 0: 
			B.append(x)
	print B

<filename>07_list_comprehensions.py
"""
Practice - 7
"""

if __name__ == '__main__':
	a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
	B = []
	for x in a: 
		if x%2 == 0: 
			B.append(x)
	print B

Practice - 7