<div dir="ltr"><font color="#000000"><font face="courier new,monospace">rooms_on_floor is being set by the manual input for each floor iterated over in your for loop.  My guess is your total_rooms value equals the rooms from the last floor you processed.  Same goes for the occupied_rooms.  You'll want a separate variable to increment after each occupied_rooms or rooms_on_floor is received from the user.</font></font><div>

<font color="#000000"><font face="courier new,monospace"><br></font></font></div><div style><font color="#000000" face="courier new, monospace">something like...:</font></div><div style><font color="#000000" face="courier new, monospace"><br>

</font></div><div style><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">rooms_on_floor = int(input("Enter the number of rooms on floor: "))</span><font color="#000000" face="courier new, monospace"><br>

</font></div><div style><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">total_rooms += rooms_on_floor</span></div></div><div class="gmail_extra"><br clear="all"><div><b>Matt Jones</b></div>
<br><br><div class="gmail_quote">On Tue, Jan 1, 2013 at 2:14 PM,  <span dir="ltr"><<a href="mailto:worldsbiggestsabresfan@gmail.com" target="_blank">worldsbiggestsabresfan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

OK, thank you all for your help yesterday!<br>
<br>
Here's where we are today (using python 3.3.0)<br>
<br>
He has everything running well except for the final calculations - he needs to be able to total the number of rooms in the hotel, as well as the number of occupied rooms.  We have tried several different things and can't come up with a successful command.  Any help you can give will be much appreciated!!<br>


<br>
Here's what he's got:<br>
<div class="im"><br>
#This program will calculate the occupancy rate of a hotel<br>
floor_number = 0<br>
</div>rooms_on_floor = 0<br>
occupied_rooms = 0<br>
total_rooms = 0<br>
total_occupied = 0<br>
<div class="im"><br>
<br>
<br>
number_of_floors = int(input("How many floors are in the hotel?: "))<br>
while number_of_floors < 1:<br>
</div>    print ("Invalid input! Number must be 1 or more")<br>
<div class="im">    number_of_floors = int(input("Enter the number of floors in the hotel: "))<br>
<br>
</div>for i in range(number_of_floors):<br>
<div class="im">    floor_number = floor_number + 1<br>
    print()<br>
    print ("For floor #",floor_number)<br>
    rooms_on_floor = int(input("How many rooms are on the floor ?: " ))<br>
    while rooms_on_floor < 10:<br>
</div>        print ("Invalid input! Number must be 10 or more")<br>
<div class="im">        rooms_on_floor = int(input("Enter the number of rooms on floor: "))<br>
<br>
    occupied_rooms = int(input("How many rooms on the floor are occupied?: "))<br>
<br>
        #CALCULATE OCCUPANCY RATE FOR FLOOR<br>
    occupancy_rate = occupied_rooms / rooms_on_floor<br>
    print ("The occupancy rate for this floor is ",occupancy_rate)<br>
<br>
</div>#CALCULATE OCCUPANCY RATE FOR HOTEL<br>
print()<br>
total_rooms = sum(rooms_on_floor) #DOESN'T WORK!<br>
total_occupied = sum(occupied_rooms) #DOESN'T WORK!<br>
<div class="im HOEnZb">hotel_occupancy = total_occupied / total_rooms<br>
</div><div class="HOEnZb"><div class="h5">vacant_rooms = total_rooms - total_occupied<br>
print ("The occupancy rate for this hotel is ",hotel_occupancy)<br>
print ("The total number of rooms at this hotel is ",total_rooms)<br>
print ("The number of occupied rooms at this hotel is ",total_occupied)<br>
print ("The number of vacant rooms at this hotel is ",vacant_rooms)<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br></div>