コード例 #1
0
def calc():
    logic.greeting()
    print('What is the result of the expression?\n')
    logic.run_game(generate_question_answer_pair_calc)
コード例 #2
0
ファイル: gcd.py プロジェクト: Everyday24/python-project-lvl1
def gcd():
    logic.greeting()
    print('Find the greatest common divisor of given numbers.\n')
    logic.run_game(generate_question_answer_pair_gcd)
コード例 #3
0
def prime():
    logic.greeting()
    print('Answer "yes" if given number is prime. Otherwise answer "no".\n')
    logic.run_game(generate_question_answer_pair_prime)
コード例 #4
0
def even():
    logic.greeting()
    print('Answer "yes" if number even otherwise answer "no".\n')
    logic.run_game(generate_question_answer_pair)
コード例 #5
0
def progression():
    logic.greeting()
    print('What number is missing in the progression?\n')
    logic.run_game(generate_question_answer_pair_progression)