fork download
  1. from random import randint
  2.  
  3. tupla = tuple(randint(i + 1, 9) for i in range(randint(1, 5)))
  4. print(tupla)
  5.  
  6. #https://pt.stackoverflow.com/q/389923/101
Success #stdin #stdout 0.04s 9996KB
stdin
Standard input is empty
stdout
(4, 6, 3, 8, 7)