title: Python- Expanded form of a number raised to the power of ten
body: <p>I'm pretty new to coding and I am trying to write a python script where a user enters an integer and it displays that integer in expanded form raised to the power of 10's.</p>
  
  <p>Example: A user enters <code>643541</code> and the script outputs <code>643541 = (6x10^5 )+(4x10^4)+(3x10^3)+(5x10^2)+(4x10^1)+(1x10^0)</code></p>
  
  <p>This is my code</p>
  
  <pre><code>A = [7000, 400, 70,1]
  cond = True
  y = 0
  i = 0
  sizeArray = len(A)
  for i in range(0, sizeArray-1):
      while cond == True:
          if A[i]%10 == 0:
              A[i] = A[i]/10
              y += 1
  
          else:
              cond = False
      print(y)
  </code></pre>
  
  <p>I tried working with a sample array to test the number of zero's but I don't know how i will be able to output the result as above.</p>
  
  <p>How can I accomplish this?</p>