title: Kind of pyramid numbers pattern exercise
body: <p>Can you help to simplify this code and make it more efficient? Mine seems like it's not the best version; what can I improve?</p>
  
  <pre><code>     1
      232
     34543
    4567654
   567898765
  678901109876
  </code></pre>
  
  <p>This is the code I made:</p>
  
  <pre><code>c = -1
  
  for y in range(1, 7):
      print()
      print((6-y) * " ", end="")
      c += 1
  
      for x in range(1, y+1):
          print(y%10, end="")
          y += 1
  
      while y - c &gt; 2:
          print(y-2, end="")
          y -= 1
  </code></pre>