I wanted to know how I could read ONLY the FIRST WORD of each line in a text file. I tried various codes and tried altering codes but can only manage to read whole lines from a
You are using split at the wrong point, try:
for line in f: QuizList.append(line.split(None, 1)[0]) # add only first word