I want to produce a list of possible websites from two lists:
strings = ["string1", "string2", "string3"]
tlds = ["com', "net", "org"]
to produce the following output:
string1.com
string1.net
string1.org
string2.com
string2.net
string2.org
I've got to this:
for i in strings:
print i + tlds[0:]
But I can't concatenate str and list objects. How can I join these?
{ }button. There's never a need to put<br>elements in the post. Either a blank line in between, or two spaces at the end of a line will create a paragraph/line break.