list_a : ["http://example.com="]
list_b : [3, 4, 777, 888, 99]
Desired result:
['http://example.com=3',
'http://example.com=4',
'http://example.com=777',
'http://example.com=888',
'http://example.com=99']
ACCEPTED]
Let's say you have the following lists:
list_a = ['http://example.com=']
list_b = [3, 4, 777, 888, 99]
Than what you need to do is to create a new list called list_c, and then:
for number in list_b:
list_c.append(list_a[0] + str(number))
A="http://example.com="
B=[3, 4, 777, 888, 99]
B=[A+str(i) for i in B]
print(B)
changed B array using inplace substitution trick of python.
str? - AdamGold