from itertools import product
for word, letter, hours in product(['AAA', 'BBB', 'CCC'], ['M', 'Q', 'S',
    'K', 'B'], ['00:00', '01:00', '02:00', '03:00']):
    print(word, letter, hours)
How to iterate in a cartesian product of lists