title: Name Error while using if statements - Python 2.7
body: <p>I'm currently working on a project which acts as an airline reservation booking system.  As of right now I'm having an issue with calculating and displaying a subtotal which was calculated inside of an if elif else loop statement, if that makes sense.</p>
  
  <p>For example, I currently need to calculate the subtotal of the seats and luggage.  Below is my code:</p>
  
  <pre><code>user_people = int(raw_input("Welcome to Ramirez Airlines!  How many people will be flying?"))
  user_seating = str(raw_input("Perfect!  Now what type of seating would your party prefer?"))
  user_luggage = int(raw_input("Thanks.  Now for your luggage, how many bags would you like to check in?"))
  user_frequent = str(raw_input("Got it.  Is anyone in your party a frequent flyer with us?"))
  user_continue = str(raw_input("Your reservation was submitted successfully.  Would you like to do another?"))
  luggage_total = user_luggage * 50
  
  print luggage_total + seats_total
  </code></pre>
  
  <p>As I said above I'm trying to add the total price for the number of plane tickets reserved based on which class the user chose (economy, business and first class) and the total amount of the required luggage needed to be checked in (x amount &amp; $50).</p>
  
  <p>This is the error I am receiving when executing the above code: </p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Users/Cory/Desktop/Project 1.py", line 26, in &lt;module&gt;
      print luggage_total + seats_total
  NameError: name 'seats_total' is not defined
  </code></pre>
  
  <p>How do I go about defining seats_total outside of the if-elif-else statements?</p>
  
  <p>Thank you so much!</p>