code: from mpi4py import MPI
  from numpy import arange, empty
  
  comm = MPI.COMM_WORLD
  rank = comm.Get_rank()
  size = comm.Get_size()
  
  n = 10
  data = empty(n, float)
  if rank == 0:
      data = arange(n, dtype=float)
  
  comm.Bcast(data, 0)
  
  if rank == 1:
      print("Received: " + str(data))
  
  
apis: numpy.arange numpy.empty