First I will post my code. I feel that there's a simple answer that I'm somehow overlooking.
questionsList=[]
answersList=[]
def retrieveQuestions():
f=open('Questions.txt')
questionsList=f.read().splitlines()
for row in f:
questionsList.append(row)
def retrieveAnswers():
with open('Answers.txt') as j:
answersList=list(j.read().splitlines())
retrieveQuestions()
retrieveAnswers()
print(questionsList)
print(answersList)
When I run the program, I get output of [] [] I looked up multiple methods of file path, multiple ways to read and .splitlines(), and I still don't know what's wrong.