Could someone tell me why this isn't filling my empty list?
# creating empty list to read in file responses = [] file = open("8_Ball_responses.txt" , "r") for line in file: responses.append((file.readline()).rstrip('\n')) file.close() print(responses[random.randint(0, len(responses) - 1)])