fork download
  1. import random
  2. lines = open('./database.txt','r').readlines()
  3. print(lines[random.randrange(0, len(lines))])
Runtime error #stdin #stdout #stderr 0.02s 10936KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 2, in <module>
FileNotFoundError: [Errno 2] No such file or directory: './database.txt'