Tuesday, 3 August 2021

Top 5000 python programs examples with solutions - Part 6

Program 61:

Write a program to add two list of strings using list comprehension?

lst1=['hello','welcome','india']
lst2=['everyone','all']
lst3=[a+b for a in lst1 for b in lst2]
print(lst3)

Read more »

Labels: