# -*- coding: utf-8 -*-
"""
Created on Mon Apr 23 10:45:10 2018

@author: user
"""
import numpy as np
x=[[['1', '4', '7'], ['1', '2', '3'], ['4', '2', '6']],
   [['2', '5', '8'], ['1', '2', '3'], ['5', '2', '7']],
   [['3', '6', '9'], ['1', '2', '3'], ['6', '2', '8']]]
#np.arrage(8).reshape(2,4)
# Python Program illustrating
# numpy.reshape() method
 
import numpy as geek
 
np.reshape(x,(9,3))
print(x)

