Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobPapirov authored Apr 20, 2023
1 parent d8e7395 commit 2dfde94
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions ru/lang/en/numbers-ru.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*-
import random as rand

from library.welcomeScreen import welcome_ru as welcome
from library.farwell import showTotalScoreBye_ru as showTotalScoreBye
# https://stackoverflow.com/questions/20309456/call-a-function-from-another-file

name, questionsNum = welcome()

questionsKeeper = 1
rightAns = 0
progress = ''

while questionsKeeper <= questionsNum:

questionsKeeper += 1

numbers = ['ONE', 'TWO', 'THREE', 'FOUR', 'FIVE', 'SIX', 'SEVEN', 'EIGHT', 'NINE', 'TEN',
'ELEVEN', 'TWELVE', 'THIRTEEN', 'FOURTEEN', 'FIFTEEN', 'SIXTEEN', 'SEVENTEEN',
'EIGHTEEN', 'NINETEEN', 'TWENTY']

randIntGen = rand.randint(0, numbers.__len__() -1 )
qNumbers = numbers[randIntGen]

qIn = 'a'

while qIn != qNumbers:
qIn = str(input("Type {} ? ".format(qNumbers)))

if qIn == qNumbers:
print(" :)")
print("")
progress = str(progress) + '='
print("{}".format(progress))
print("")
rightAns += 1
break
else:
print(" :(")
print("")

showTotalScoreBye(rightAns, questionsNum, name)

0 comments on commit 2dfde94

Please sign in to comment.