human
Can you show me a Python program to read the first line of a file.
assistant
Here is a Python program to read the first line of file

import os

def read_first_line(filename):
        """
        Read the first line of a file.

        :param filename: The name of the file.
        :return: The first line of the file.
        """
        with open(filename, 'r') as f:
            return f.readline()

# Enter the filename
filename = "test.txt"

# Calling the function
print((read_first_line(filename)))

#Example Output
# 

#Remember to inspect code for bugs.