Q:

I cant collect answer from my variables in for loop

Please can someone help with my homework....I'm stuck and i need serious help.  Below is the question:
for each room, ask for the room name (e.g. lounge, dining room) and the number of walls in the room:  For each wall, ask the height and width of the wall in metres.   Calculate the total surface area of the walls in square metres. 
I cant add the numbers in my for loop because the for loop repeats the variables do as well so i cannot record the first answer in my first input because i cannot do this i cannot find the total surface area
Below my code:
numofrooms = input("num of rooms:")
n = int(numofrooms)
for n in range(n):
    input("name of room:")
    numofwalls = input("num of walls:")
    wall = int(numofwalls)
    for wall in range(wall):
        height = input("height of wall:")
        height = int(height)
        width = input("width of wall:")
        width = int(width)
        sa = int(height) * int(width)
    tsa = sa * int(numofwalls) * int(numofwalls)

A:

Currently you are calculating the surface area for each room (sa = width*height) but not totaling it correctly afterwards (ie.  storing that value in a total). 
The code below calculates the sa of every room by continually adding the sa of all walls for said room (The "for wall in range(numOfWalls):" loop).  It needs to calculate the sa for all rooms, so it add every rooms surface area to a total variable (as described in other answers)
numOfRooms = int(input("num of rooms:"))
tsa = 0
for n in range(numOfRooms):
    input("name of room:")
    numOfWalls = int(input("num of walls:"))
    sa = 0
    for wall in range(numOfWalls):
        height = int(input("height of wall:"))
        width = int(input("width of wall:"))
        sa = sa + (height * width)
    tsa = tsa + sa

I've combined some lines to make things a little nicer to look at

