Array programming
Not always considered, but it's an important one for the sciences.
input_data = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9])
output_data = np.zeros_like(input_data)
for i in range(len(input_data)):
output_data[i] = input_data[i] ** 2
output_data = np.fromiter(map(lambda x: x**2, input_data), int)
output_data = input_data**2