title: Why isn't my while loop, looping?
body: <p>I'm using notepad++ and I do this:</p>
  
  <blockquote>
    <p>x = raw_input("blablabla")</p>
  </blockquote>
  
  <p>But it's printing onto the console, why is that? Shouldn't it just set the variable x to that command instead of printing?</p>
  
  <p>Though my problem isn't from this, I still don't understand why does a variable prompts without being called, shouldn't it be called only when I "print x"?
  ====================EDIT=======================</p>
  
  <pre><code>str = int(raw_input("Enter a number: "))
  
  def numero(x):
      y = 0
      while x != 0:
          y += x
          return y
      else:
          print y
  
  print numero(str)
  </code></pre>
  
  <p>Anyways, this isn't looping, my objective is here to add the numbers as long as user is inputing numbers until he inputs 0 which cancels and delivers the total..
  I input a number and it goes right to printing the total without asking me for more numbers..</p>