mytuple = (10,10)mylist = []for i in range(mytuple[0], -1, -1): mylist.append((i, mytuple[1]))print(mylist)
Standard input is empty
[(10, 10), (9, 10), (8, 10), (7, 10), (6, 10), (5, 10), (4, 10), (3, 10), (2, 10), (1, 10), (0, 10)]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!