from itertools import product print list(product('ABC',[2,3]))
[('A', 2), ('A', 3), ('B', 2), ('B', 3), ('C', 2), ('C', 3)]
No comments:
Post a Comment