for item in result23:
cur.executescript("""INSERT INTO result ('#','number','target_1', 'target_2','bet_size','payot')
VALUES (
"""+str(count_for)+""","""+item+""","""+str(result2).replace('\'','')+""","""+str(result3)+""","""+str(result4)+""","""+str(result5)+""");""")
count_for += 1
for count, item in enumerate(result23):
...
for count, item in enumerate(result23):
cur.executescript(
"""INSERT INTO result """
"""('#','number','target_1', 'target_2','bet_size','payot') """
"""VALUES (""" +
",".join((str(count), item, str(result2).replace('\'',''),
str(result3), str(result4), str(result5))) +
");"
)