'''Question: 
Write a Python program to read a random line from a file.
'''

# Python code: 

import random

def random_line(fname):

    lines = open(fname).read().splitlines()

    return random.choice(lines)

print(random_line('test.txt'))



'''Output sample: 
Append this text.

'''