def square_list(int_list): for index in range(0, len(int_list)): int_list[index] = int_list[index] ** 2