Jun-17-2019, 09:11 AM
You should have a look at the module itertools
It has a lot of very useful functions included
It has a lot of very useful functions included
from itertools import product one = ["one","o","n","e"] two = ["two","t","w","o"] for first, second in product(one, two): print(f'{first} and {second}')