This is what I have right now:
def open_file():
    file_name = input("What is the name of the file you want to open?")
    while True:
        try:
            file = open(file_name, 'r')
            header = file.readline()
            return (file)
            break
        except FileNotFoundError:
            file_name = input("What is the name of the file you want to open?")
def process_file():
    file = open_file()
    print(file)
def main():
    process_file()
I can't even get it to get to prompting me for the file name I want to open. Doesn't that mean it's not a problem with my loop but the way I am calling my functions?
 
     
     
     
    