Я думаю, ты немного усложняешь себя.Вы можете добавить любое количество списков к listOfWords
и таким образом получить необходимую структуру данных.
Вот что я хотел бы сделать, хотя я предполагаю, что вы определяете translation
и notes
в другом месте, я также вводюих:
listOfWords = []
word = ""
while word != "quit":
word = input(str("Enter the word: "))
if word != "quit":
translation = input(str("Enter the translation: "))
notes = input(str("Enter the notes: "))
listOfWords.append([word, translation, notes])
print(listOfWords)
Вывод:
Enter the word: Hola
Enter the translation: Hello
Enter the notes: greeting
Enter the word: Perro
Enter the translation: Dog
Enter the notes: animal
Enter the word: quit
[['Hola', 'Hello', 'greeting'], ['Perro', 'Dog', 'animal']]