import itertools
string1 = 'abc'
string2 = 'ABC'
string3 = '012'
for x in itertools.product(string1,string2,string3):
print(x)
------------------------------------------------------
('a', 'A', '0')
('a', 'A', '1')
('a', 'A', '2')
('a', 'B', '0')
('a', 'B', '1')
('a', 'B', '2')
('a', 'C', '0')
('a', 'C', '1')
('a', 'C', '2')
('b', 'A', '0')
('b', 'A', '1')
('b', 'A', '2')
('b', 'B', '0')
('b', 'B', '1')
('b', 'B', '2')
('b', 'C', '0')
('b', 'C', '1')
('b', 'C', '2')
('c', 'A', '0')
('c', 'A', '1')
('c', 'A', '2')
('c', 'B', '0')
('c', 'B', '1')
('c', 'B', '2')
('c', 'C', '0')
('c', 'C', '1')
('c', 'C', '2')