Percentage of wall area covered by windows

def window_type_area_m2(count, width, height): return count * width * height wall_size_width_m = 2.7 wall_size_keght_m = 2.6 wall_area_m2 = wall_size_width_m * wall_size_keght_m window_type1_width_m = 0.5 window_type1_height_m = 1.12 window_type2_width_m = 0.58 window_type2_height_m = 1.22 window_type1_count, window_type2_count = 1, 2 window_type1_area = window_type_area_m2( window_type1_count, window_type1_width_m, window_type1_height_m ) window_type2_area = window_type_area_m2( window_type2_count, window_type2_width_m, window_type2_height_m ) total_window_area_m2 = window_type1_area + window_type2_area window_cover_perc = (total_window_area_m2 / wall_area_m2) * 100 print('Percentage of the wall area covered with windows: {perc:.2f}%'.format(perc=window_cover_perc)) # 28.14%