+ 1

[Python]Why output only "By Taler Grichina or Oleg Grichina(Ukraine)"?

I make game,in English language game works without errors,please help me import random from randint as random choiceRu = ["камень","бумага","ножницы"] computerChoiceRu = [random(0,2)] if lang == "ru": print("By Taler Grichina or Oleg Grichina(Ukraine)") if computerChoiceRu == "камень" and userChoice "камень": print(computerChoiseRu,"это выбор компьютера,а твой выбор:",userChoice) print("Вы проиграли") ....... Please help me,i want make game on Python

14th Jan 2017, 2:28 PM
Олег Гричина
Олег Гричина - avatar
4 Answers
+ 2
you wrote: computerChoiceRu = [random(0,2)] you had to write computerChoiceRu = choiceRu[random(0,2)]
14th Jan 2017, 2:33 PM
Golan
0
Thanks, I corrected the mistake, but the problem is not solved.I can show all code
14th Jan 2017, 3:43 PM
Олег Гричина
Олег Гричина - avatar
0
In Code Playground: [Taler Grichina]Rock,paper,scissors game on English and Russian language
14th Jan 2017, 3:45 PM
Олег Гричина
Олег Гричина - avatar
0
I looked at it and it seems like the sololern doesnt support printing in Russian or maybe you sould define some configuration in the pytho code in order to use Russian letters.
14th Jan 2017, 7:30 PM
Golan