title: how to print a pattern using 1's in the form of plus sign using numpy array
body: <p>How to print a plus pattern with 1's inside zeros using numpy array!! I need to satisfy all the cases.I tried below code!!</p>
  
  <p>Code:</p>
  
  <pre><code>n = int(input())
  import numpy as np
  x = np.zeros((n,n), dtype=int)
  x[3:4] = 0
  x[2:-1,2:3] = x[1:-1,2:3] = x[2:3] = x[0:-1,2:3] = x[4:,2:3]= 1
  for i in range(n):
      for j in range(n):
          print(x[i][j] , end = " ")
      print()
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>[[0 0 1 0 0]
   [0 0 1 0 0]
   [1 1 1 1 1]
   [0 0 1 0 0]
   [0 0 1 0 0]]
  </code></pre>