title: Python Boolean etc
body: <p>I am working on an assignment:</p>
  
  <blockquote>
    <p>Have you ever noticed a sign like this on an elevator? Have you ever wondered if the people on the elevator were within the rated load?
    In this problem you will write code that:</p>
    
    <ul>
    <li><p>asks the user for the rated load of the elevator</p></li>
    <li><p>starts with the assumption that the elevator is empty</p></li>
    <li><p>asks the user for the weight of the next passenger</p></li>
    <li><p>checks to see if that passenger can get on the elevator</p></li>
    <li><p>if they can, it says so, adds that weight to the current weight on the elevator and continues</p></li>
    <li><p>if that passenger will exceed the weight capacity it says so and then quits.</p></li>
    </ul>
  </blockquote>
  
  <p>For Example</p>
  
  <p><img src="https://i.stack.imgur.com/kAkKc.png" alt="example run"></p>
  
  <p>When I run the program now, it continuously prints "Time to quit.  This person will exceed the weight limit of the elevator. " I eventually have to kill it.  Any help is appreciated.  I am sure I am missing something easy.</p>
  
  <p>Code:</p>
  
  <pre><code>currentWeight = 0
  
  weightLimit = int(input("What is the rated load of the elevator? "))
  
  newPassengerWeight = int(input("What is the weight of the next passenger? "))
  
  keepGoing=True
  
  while currentWeight&lt;=weightLimit:
  
      if currentWeight + newPassengerWeight&lt;=weightLimit:
          currentWeight=currentWeight + newPassengerWeight
          print("The person can get on.")
      else:
          keepGoing=False
          print("Time to quit.  This person will exceed the weight limit of the elevator. ")
  </code></pre>