Sorry, I have toggled resistors r3 and r6 inadvertently.
The correct result is:
r3=33.0
r6=3.9
And corrected Python code:
r24 = [1.0, 1.1, 1.2, 1.3, 1.5, 1.6, 1.8, 2.0,
2.2, 2.4, 2.7, 3.0, 3.3, 3.6, 3.9, 4.3,
4.7, 5.1, 5.6, 6.2, 6.8, 7.5, 8.2, 9.1]
r24 = [r for r in r24] + [10*r for r in r24]
vout_searched = 12
error = 0.1
for r3 in r24:
for r6 in r24:
vout = (1.26 / r6) * (r3 + r6)
if vout < vout_searched + error and vout > vout_searched - error:
print(f"r3={r3} r6={r6} vout={vout:4.2f}")