0

Hi everyone

lst1=["a","b","c","d"] lst2=["c","d","e","f"] for e,i in range zip((0,lst1),(0,lst2)): print(lst1[e]+lst2[i] , end="") is there a way to use the range () and the zip() functions at the same time?

14th Jul 2020, 11:10 PM
A. Essabbere
A. Essabbere - avatar
1 Answer
+ 2
You could just use zip, there is no need to use range at all.. for e, i in zip(lst1, lst2): print(e + i, end="") Hope this helps...
14th Jul 2020, 11:53 PM
G B
G B - avatar