Permutations between two lists of unequal length

I’m having trouble wrapping my head around a algorithm I’m try to implement. I have two lists and want to take particular combinations from the two lists. Here’s an example. names = [‘a’, ‘b’] numbers = [1, 2] the output in this case would be: [(‘a’, 1), (‘b’, 2)] [(‘b’, 1), (‘a’, 2)] I might … Read more