title: I Am Building A Function With A While Statement, and As Soon as the While Statement Ends, it Doesn't Do Anything, Despite There Being More Code
body: <p>I am building a function, but the function doesn't work the way it should.</p>
  
  <pre><code>def correct_number():
    wPlayer = input("Choose a number. ")
    while wPlayer is not int:
      notint = 0
      try:
        wPlayer = int(wPlayer)
      except ValueError:
        print("You didn't enter a number.")
        wPlayer = input("Choose a number. ")
        notint = 1
      if (notint != 1):
        if wPlayer &lt;= 0:
          print('Please enter a number bigger than zero.')
          wPlayer = input("Choose a number. ")
    wPlayer += 12
    if wPlayer &lt;= 82:
      wPlayer = 82
      print("Your number is now 82.")
    try:
      num = 12 - wPlayer
    if num &lt; -70:
      wPlayer -= num
    elif num &gt; -70:
      wPlayer -= 1
    print("Your number is now", wPlayer)
  correct_number()
  print('The Program Has Ended.')
  </code></pre>
  
  <p>When I run this program, and I meet the while statement's requirements, it doesn't print anything else, even the <code>print</code> right below the function call. Why is this? What am I doing wrong?</p>