fork download
  1. import random
  2. rand = random.sample(range(1, 50), 5).sort()
  3. print(rand)
  4. rand.sort()
  5. print(rand)
Runtime error #stdin #stdout #stderr 0.19s 23536KB
stdin
Standard input is empty
stdout
None
stderr
Traceback (most recent call last):
  File "./prog.py", line 4, in <module>
AttributeError: 'NoneType' object has no attribute 'sort'