Print all possible combinations in python | Use of Append Method in Python

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Hi! i'm really having a hard time here, i'd really appreciate it if you can help.
so, i want to form all possible 6 combination out of 3 groups of elements. the composition is as follows:
2 from group A ( a, b, c, d, e)
2 from group B (f, g, h, i, j) and
2 from group C (k, l, m, n, o, p, q, r, s, t)
Also, after this, i want to export it as csv.file that looks like this:
Column 1 Column 2 Column 3 Column 4 Column 5 Column 6
a b f g k l
and so on...
ps. it could be numbers if letters is not allowed.
I've tried using itertools, and list. but still nothing. i hope you could me help out. thanks!

richarddevera