human
Give me a Python program to get the last line of variable.
assistant
Here is a Python program to get the last line of variable values

import os

def get_last_line(file_obj):
    """
    >>> file_obj = open("file.txt", "r")
    >>> get_last_line(file_obj)
    'This is the last line of the file.'
    """
    line = file_obj.readline()
    while line:
        line = file_obj.readline()
    return line

# Enter the file name
file_name ="yellow submarine"

# Open the file
file_obj = open(file_name, "r")

# Calling the function
last_line = get_last_line(file_obj)

# Print the last line

#Remember to inspect code for bugs.