title: I need to print this pascal triangle but without the comma into between the different array elements. How do I get rid of the commas
body: <pre><code>height = int(input("Enter the height of the triangle: \n"))
  
  array = [1]
  
  for ch in range(height):
      print((str(array)[1:-1]))
  
      newarray = []
      newarray.append(array[0])
      for ch in range(len(array) - 1):
          (newarray.append(array[ch] + array[ch+1]))
      str(newarray.append(array[-1]))[1:-1]
  
      array = (newarray)
  </code></pre>