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
Post a Comment