title: Python: find the exponent of two numbers using only incrementation/addition by 1(+=1), can not use multiplication or division operators.
body: <p>I am trying to find the exponent of two numbers (<strong>n</strong>,<strong>m</strong>) using the only arithmetic operation of incrementation "+=1" by 1. I can not use any other addition/multiplication or division operators.  The program can be a function or a loop such that the user enters <strong>n</strong>, and them <strong>m</strong> and the program calculates <strong>n</strong> raised to the power of <strong>m</strong>. </p>
  
  <p>There is one question closely related to mine already posted <strong>BUT</strong> it is looking for <strong>one</strong>, <strong>odd</strong> numbered square AND the addition operator is allowed. The related question does not help me raise the value of <strong>n</strong> by the value of <strong>m</strong>. Here is the code I have so far, it will multiply but not square based on user inputs. Thanks in advance!</p>
  
  <pre><code>n=int(input())
  m=int(input())
  
  i=0
  acc=0
  while i &lt; m:
      acc+=n
      i+=1
  print(acc)
  </code></pre>