title: how to draw a 'x' shape like below
body: <p>I am new to python, please someone help to draw a shape like below. The program have to take the number of star as an input. </p>
  
  <p>number of star = 7 </p>
  
  <pre><code>*      *
  **    **
  ***  *** 
  ********
  ***  *** 
  **    **
  *      *
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>count = int(input('star count : '))
  pattern_size = count + 1
  for t in range(1, pattern_size):
      pattern = list(" " * pattern_size)
      pattern[:t] = "*" * t
      pattern[-t:] = '*' * t
      print(''.join(pattern))
  
  star count :  9
  *        *
  **      **
  ***    ***
  ****  ****
  **********
  **********
  **********
  **********
  **********
  </code></pre>