I am looking for a way to write the text mentioned below,
Step: 0 ID: [291, 339, 377, 441] Std: 0.1379
Step: 0 ID: [166, 207, 365, 424] Std: 0.2927
Step: 0 ID: [401, 418, 443] Std: 0.0997
Step: 0 ID: [160, 170, 222, 394] Std: 0.2062
Step: 0 ID: [163, 175, 261] Std: 0.0303
in a format similar to
Step: 0 ID: [291, 339, 377, 441] Std: 0.1379
Step: 0 ID: [166, 207, 365, 424] Std: 0.2927
Step: 0 ID: [401, 418, 443] Std: 0.0997
Step: 0 ID: [160, 170, 222, 394] Std: 0.2062
Step: 0 ID: [163, 175, 261] Std: 0.0303
using command alike
file.write(f' Step: {step} ID: {ids} Std: {stds}').
Is there any way to achieve so?