my_list
x = [a, b, c, d]
config.ini
[var_list]
var01 = a1
var02 = b1
var03 = c1
var04 = d1
var05 = e1
var06 = f1
I need to write x[] to ini file and in this case, I have only 4 variables in list but I have 6 variables to keep in ini file I need to write to 'N/A' to other variables left like this
config.ini (result)
[var_list]
var01 = a
var02 = b
var03 = c
var04 = d
var05 = N/A
var06 = N/A
I have no idea how to coding in for loop or something? Thank you and sorry about bad in englist