Here you go:
Z = [['A', 'B', 'C'], [1], ['x', 'y']]
import itertools
for element in itertools.product(*Z):
print(element)
Result:
('A', 1, 'x')
('A', 1, 'y')
('B', 1, 'x')
('B', 1, 'y')
('C', 1, 'x')
('C', 1, 'y')
solved Python list ways to select objects [duplicate]