def get_task_generator(self):
def micro14_question(self):
alphabet = string.ascii_lowercase
idx = random.randint(0, len(alphabet) - 2)
question = 'after {} comes what:.'.format(alphabet[idx])
sentence = alphabet[idx + 1]
sentence += '.'
def micro14_feedback(is_correct, question):
reaction = "good job" if is_correct else "wrong"
if not is_correct:
return reaction + '! ' + sentence
else:
return reaction + '! '
return question, [sentence], micro14_feedback
return TaskGenerator(micro14_question, '', None, ';')
评论列表
文章目录