Python add string to list while adding list items (iterating) -


this partially working:

list = ["abc %d" % d d in range(1, 1000)] 

but need like:

list = ["a %value% bc %d" % d d in range(1, 1000) foreach %value%]  

%value% should 20 value list or something. can me fix code?

would work?

list = ["a %s bc %d" % (v, d) d in range(1, 1000) v in value] 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -