Problem with list indexing?
Reposting because I made a mistake on my first post.
I'm making this word generator to help me make words for a conlang that I'm making. The program starts by creating the structure of the word using lists of empty strings, and then sounds are added. Here is the short version of the problem I am running into
word_struc = [["", ""], [""], ["", ""]] curr_sound = [0, 0] chosen_sound = "m" word_struc[curr_sound][curr_sound] = chosen_sound print(word_struc)
[["m", ""], [""], ["m", ""]]
Instead of going into the correct index and only the correct index, the string is put into the same index of every sublist that is the same length.
I know my code will look pretty clunky and repetitive to someone more experienced; I only learned the basics of python because I took a programming class in high school.