Here is a piece of code in which you want to enter the word, then read the file, a copy of all text to the variable, and output to the screen:
first_gamer_word = input ("First Player \ N")
File = Open ('D: \\ russian_nounts.txt', 'R')
text = file.read ()
File.Close ()
PRINT (text)
Here is an example of what Pycharm is issued:
p ° p ± r ° ¶WITHѓѓ
P ° P ± R ° ¶WITHѓWITHђWITH ‡ RUR
P ° p ± p · r ·
P ° P ± R ° P · RURS
P ° p ± p · r · roerѕrμs †
Answer 1, Authority 100%
first_gamer_word = input ("First Player \ N")
File = Open ('D: \\ russian_nounts.txt', 'R', Encoding = 'UTF-8')
text = file.read ()
File.Close ()
PRINT (text)
stdout :
lampshade
Abazurchik
Abaz
Abazin
Abazinets