title: Why is my integer viewed by python as a complex number?
body: <p>I just started a course in Python and trying this code:</p>
  
  <pre><code>import math
  
  c = int(input('Enter number: '))
  
  a = 1
  
  counter = 0
  
  while counter != 2:
      a = a + 1
      b = round((c-(a**3))**(1/3.0))
  
      if a &lt; b and a**3 + b**3 == c:
          counter = counter + 1
          print(a,b)
  </code></pre>
  
  <p>My problem is that python cant round the 'b' since it is viewed as a complex number...</p>
  
  <p>The program is supposed to find two sets of a &amp; b that satisfie a^3+b^3=c, any feed back on my code is appreciated.</p>