fork download
  1. # your code goes here
  2. import random
  3.  
  4. listOne = []
  5. for x in range(10):
  6. i = random.randrange(x)
  7. listOne.append(i)
  8.  
  9. print(listOne)
Runtime error #stdin #stdout #stderr 0.14s 12264KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 6, in <module>
  File "/usr/lib/python3.2/random.py", line 182, in randrange
    raise ValueError("empty range for randrange()")
ValueError: empty range for randrange()