Replace words with different synonyms and print each combination in a text file

Yeah, I used the wrong thing. There was a blackout where I live so in the end I had to rewrite the code several times because it didn’t save. I used different variable/funtion names. : P

example is: