How to add every element in a list to every element in another list without the use of for loops
E.g.: this is the standard for loops
sq = ['angrid', 'alex', 'life']
c_ = ['alpha', 'beta']
for i in sq:
for j in c_:
print(i+j)
Since this is a for loop. more elements will lead to latency in the task. Is there an optimized way to perform this operation?