You can use two for loops in same line by using zip
function
Code:
list1 = ['Abbas', 'Ali', 'Usman']
list2 = ['Kamran', 'Asgar', 'Hamza', 'Umer']
list3 = []
for i,j in zip(list1,list2):
list3.append(i)
list3.append(j)
print(list3)
Output:
['Abbas', 'Kamran', 'Ali', 'Asgar', 'Usman', 'Hamza']
So, by using zip function, we can use two for loops or we can iterate two lists in same row.