lst = [1,2,3,4]a = 'puk'res = ((el, a) for el in lst)print(list(res))
Standard input is empty
[(1, 'puk'), (2, 'puk'), (3, 'puk'), (4, 'puk')]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!