fork download
  1. mytuple = (10,10)
  2. mylist = []
  3. for i in range(mytuple[0], -1, -1):
  4. mylist.append((i, mytuple[1]))
  5. print(mylist)
Success #stdin #stdout 0.02s 9984KB
stdin
Standard input is empty
stdout
[(10, 10), (9, 10), (8, 10), (7, 10), (6, 10), (5, 10), (4, 10), (3, 10), (2, 10), (1, 10), (0, 10)]