I am new to python
I have list_a as ['A','B'] and list_b as ['C','D']
output I have to get is in this format [['AC','BC'],['AD','BD']]
When I tried with this below code:
output = []
for a in ['A','B']:
for b in ['C','D']:
if a !=b:
output.append([a,b])
print output
I Got output as [['A', 'C'], ['A', 'D'], ['B', 'C'], ['B', 'D']]
I am not sure what I am doing wrong.