element to element concatenation
Python
list1 = ["Hello ", "take "]
list2 = ["Dear", "Sir"]
result = [ x+y for x in list1 for y in list2]
print(result)
#or
for i in list1:
for j in list2:
result1 = i + j
print(result1)
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.