def do_manual(self): input_order = [] with open('./input.txt', 'rt') as f: for line in f: line = line.strip('\n') c = line.split(' ') input_order.append(c) output_str = '' for line in input_order: box = Box(line) box.manual_run() output_str += box.output_string() print('%dth puzzle complete.') counter = 0 flag_counter = 0 for i in output_str.splitlines(): if flag_counter % 2 is 0: counter += len(i) flag_counter += 1 counter = str(counter) output_str += counter output_file(output_str)