### Instruction: An apartment building has 12 floors and half of them are full. The remaining floors are all at half-capacity. If each floor has 10 apartments and each apartment has four people, how many people are in the building? Let's write a program.### Response: # define the variables
total_floors = 12
apartments_per_floor = 10
people_per_apartment = 4

# calculate the number of full floors and half full floors
full_floors = total_floors // 2
half_floors = total_floors - full_floors

# calculate the number of people in full floors and half full floors
people_full_floors = full_floors * apartments_per_floor * people_per_apartment
people_half_floors = half_floors * apartments_per_floor * people_per_apartment // 2

# calculate the total number of people in the building
total_people = people_full_floors + people_half_floors

print(total_people)