input: Write a function to create a Python script that populates an array with random numbers ranging from 1 to 100. The function should take the length of the array as input and return the populated array.
  
  def populateArray(array_length):
   array = []
   for i in range(array_length):
   array.append(random.randint(1, 100))
   return array
  
  import random
  
  assert populateArray(5)
  assert populateArray(0)
  assert populateArray(10)
  assert populateArray(1)
  assert populateArray(3)
output: def populateArray(array_length):
   array = []
   for i in range(array_length):
   array.append(random.randint(1, 100))
   return array