+ 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
4 Answers
+ 2
you wrote:
computerChoiceRu = [random(0,2)]
you had to write
computerChoiceRu = choiceRu[random(0,2)]
0
Thanks, I corrected the mistake, but the problem is not solved.I can show all code
0
In Code Playground: [Taler Grichina]Rock,paper,scissors game on English and Russian language
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.