def fraction_bodmas(): breadcrumb = {'h1': 'Maths', 'h2': 'Bodmas'} arithmetic = Question1() arithmetic.negative = True arithmetic.decimal_pt = 0 arithmetic.value_range = (0, 100) arithmetic.operand_count = 4 q = arithmetic.frame_fraction_question() query = q.sequence_str result = q.result return render_template('operations.html', title=title, domains=domains, breadcrumb=breadcrumb, query=query, result=result)
def integer_addition(): breadcrumb = {'h1': 'Maths', 'h2': 'Addition'} arithmetic = Question1() arithmetic.negative = True arithmetic.decimal_pt = 0 arithmetic.value_range = (0, 10000) arithmetic.operand_count = 2 arithmetic.operations = ['+'] q = arithmetic.frame_decimal_question() query = q.sequence_str result = q.result return render_template('operations.html', title=title, domains=domains, breadcrumb=breadcrumb, query=query, result=result)