from django.shortcuts import render
from random import randint


# Create your views here.
def home(request):
    return render(request, 'home.html', {})


def add(request):
    num_1 = randint(0, 10)
    num_2 = randint(0, 10)

    if request.method == "POST":
        answer = request.POST['answer']
        old_num_1 = request.POST['old_num_1']
        old_num_2 = request.POST['old_num_2']

        # Error Handling if no input field
        if not answer:
            my_answer = "Please provide an input to the field."
            color = 'danger'
            return render(request, 'add.html', {
                'answer': answer,
                'my_answer': my_answer,
                'num_1': num_1,
                'num_2': num_2,
                'color': color,
            })

        correct_answer = int(old_num_1) + int(old_num_2)
        if int(answer) == correct_answer:
            my_answer = "Correct! " + old_num_1 + " + " + old_num_2 + " = " + answer
            color = "info"
        else:
            my_answer = "Incorrect! " + old_num_1 + " + " + old_num_2 + " is not " + answer + ". Correct answer is " + str(
                correct_answer)
            color = "danger"

        return render(request, 'add.html', {
            'answer': answer,
            'my_answer': my_answer,
            'num_1': num_1,
            'num_2': num_2,
            'color': color, })
    return render(request, 'add.html', {
        'num_1': num_1,
        'num_2': num_2,
    })


def subtract(request):
    num_1 = randint(0, 10)
    num_2 = randint(0, 10)

    if request.method == "POST":
        answer = request.POST['answer']
        old_num_1 = request.POST['old_num_1']
        old_num_2 = request.POST['old_num_2']

        # Error Handling if no input field
        if not answer:
            my_answer = "Please provide an input to the field."
            color = 'danger'
            return render(request, 'subtract.html', {
                'answer': answer,
                'my_answer': my_answer,
                'num_1': num_1,
                'num_2': num_2,
                'color': color,
            })

        correct_answer = int(old_num_1) - int(old_num_2)
        if int(answer) == correct_answer:
            my_answer = "Correct! " + old_num_1 + " - " + old_num_2 + " = " + answer
            color = "info"
        else:
            my_answer = "Incorrect! " + old_num_1 + " - " + old_num_2 + " is not " + answer + ". Correct answer is " + str(
                correct_answer)
            color = "danger"

        return render(request, 'subtract.html', {
            'answer': answer,
            'my_answer': my_answer,
            'num_1': num_1,
            'num_2': num_2,
            'color': color, })
    return render(request, 'subtract.html', {
        'num_1': num_1,
        'num_2': num_2,
    })


def multiply(request):
    num_1 = randint(0, 10)
    num_2 = randint(0, 10)

    if request.method == "POST":
        answer = request.POST['answer']
        old_num_1 = request.POST['old_num_1']
        old_num_2 = request.POST['old_num_2']

        # Error Handling if no input field
        if not answer:
            my_answer = "Please provide an input to the field."
            color = 'danger'
            return render(request, 'multiply.html', {
                'answer': answer,
                'my_answer': my_answer,
                'num_1': num_1,
                'num_2': num_2,
                'color': color,
            })

        correct_answer = int(old_num_1) * int(old_num_2)
        if int(answer) == correct_answer:
            my_answer = "Correct! " + old_num_1 + " x " + old_num_2 + " = " + answer
            color = "info"
        else:
            my_answer = "Incorrect! " + old_num_1 + " x " + old_num_2 + " is not " + answer + ". Correct answer is " + str(
                correct_answer)
            color = "danger"

        return render(request, 'multiply.html', {
            'answer': answer,
            'my_answer': my_answer,
            'num_1': num_1,
            'num_2': num_2,
            'color': color, })
    return render(request, 'multiply.html', {
        'num_1': num_1,
        'num_2': num_2,
    })


def divide(request):
    num_1 = randint(0, 10)
    num_2 = randint(1, 10)

    if request.method == "POST":
        answer = request.POST['answer']
        old_num_1 = request.POST['old_num_1']
        old_num_2 = request.POST['old_num_2']

        # Error Handling if no input field
        if not answer:
            my_answer = "Please provide an input to the field."
            color = 'danger'
            return render(request, 'divide.html', {
                'answer': answer,
                'my_answer': my_answer,
                'num_1': num_1,
                'num_2': num_2,
                'color': color,
            })

        correct_answer = int(old_num_1) / int(old_num_2)
        if float(answer) == correct_answer:
            my_answer = "Correct! " + old_num_1 + " / " + old_num_2 + " = " + answer
            color = "info"
        else:
            my_answer = "Incorrect! " + old_num_1 + " / " + old_num_2 + " is not " + answer + ". Correct answer is " + str(
                correct_answer)
            color = "danger"

        return render(request, 'divide.html', {
            'answer': answer,
            'my_answer': my_answer,
            'num_1': num_1,
            'num_2': num_2,
            'color': color, })
    return render(request, 'divide.html', {
        'num_1': num_1,
        'num_2': num_2,
    })

1dc8332b8320adcdf92b6825c508ad4a3aacf9f6
<mask token>


def home(request):
    return render(request, 'home.html', {})


def add(request):
    num_1 = randint(0, 10)
    num_2 = randint(0, 10)
    if request.method == 'POST':
        answer = request.POST['answer']
        old_num_1 = request.POST['old_num_1']
        old_num_2 = request.POST['old_num_2']
        if not answer:
            my_answer = 'Please provide an input to the field.'
            color = 'danger'
            return render(request, 'add.html', {'answer': answer,
                'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2,
                'color': color})
        correct_answer = int(old_num_1) + int(old_num_2)
        if int(answer) == correct_answer:
            my_answer = ('Correct! ' + old_num_1 + ' + ' + old_num_2 +
                ' = ' + answer)
            color = 'info'
        else:
            my_answer = ('Incorrect! ' + old_num_1 + ' + ' + old_num_2 +
                ' is not ' + answer + '. Correct answer is ' + str(
                correct_answer))
            color = 'danger'
        return render(request, 'add.html', {'answer': answer, 'my_answer':
            my_answer, 'num_1': num_1, 'num_2': num_2, 'color': color})
    return render(request, 'add.html', {'num_1': num_1, 'num_2': num_2})


<mask token>


def multiply(request):
    num_1 = randint(0, 10)
    num_2 = randint(0, 10)
    if request.method == 'POST':
        answer = request.POST['answer']
        old_num_1 = request.POST['old_num_1']
        old_num_2 = request.POST['old_num_2']
        if not answer:
            my_answer = 'Please provide an input to the field.'
            color = 'danger'
            return render(request, 'multiply.html', {'answer': answer,
                'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2,
                'color': color})
        correct_answer = int(old_num_1) * int(old_num_2)
        if int(answer) == correct_answer:
            my_answer = ('Correct! ' + old_num_1 + ' x ' + old_num_2 +
                ' = ' + answer)
            color = 'info'
        else:
            my_answer = ('Incorrect! ' + old_num_1 + ' x ' + old_num_2 +
                ' is not ' + answer + '. Correct answer is ' + str(
                correct_answer))
            color = 'danger'
        return render(request, 'multiply.html', {'answer': answer,
            'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2, 'color':
            color})
    return render(request, 'multiply.html', {'num_1': num_1, 'num_2': num_2})


<mask token>

<mask token>


def home(request):
    return render(request, 'home.html', {})


def add(request):
    num_1 = randint(0, 10)
    num_2 = randint(0, 10)
    if request.method == 'POST':
        answer = request.POST['answer']
        old_num_1 = request.POST['old_num_1']
        old_num_2 = request.POST['old_num_2']
        if not answer:
            my_answer = 'Please provide an input to the field.'
            color = 'danger'
            return render(request, 'add.html', {'answer': answer,
                'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2,
                'color': color})
        correct_answer = int(old_num_1) + int(old_num_2)
        if int(answer) == correct_answer:
            my_answer = ('Correct! ' + old_num_1 + ' + ' + old_num_2 +
                ' = ' + answer)
            color = 'info'
        else:
            my_answer = ('Incorrect! ' + old_num_1 + ' + ' + old_num_2 +
                ' is not ' + answer + '. Correct answer is ' + str(
                correct_answer))
            color = 'danger'
        return render(request, 'add.html', {'answer': answer, 'my_answer':
            my_answer, 'num_1': num_1, 'num_2': num_2, 'color': color})
    return render(request, 'add.html', {'num_1': num_1, 'num_2': num_2})


def subtract(request):
    num_1 = randint(0, 10)
    num_2 = randint(0, 10)
    if request.method == 'POST':
        answer = request.POST['answer']
        old_num_1 = request.POST['old_num_1']
        old_num_2 = request.POST['old_num_2']
        if not answer:
            my_answer = 'Please provide an input to the field.'
            color = 'danger'
            return render(request, 'subtract.html', {'answer': answer,
                'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2,
                'color': color})
        correct_answer = int(old_num_1) - int(old_num_2)
        if int(answer) == correct_answer:
            my_answer = ('Correct! ' + old_num_1 + ' - ' + old_num_2 +
                ' = ' + answer)
            color = 'info'
        else:
            my_answer = ('Incorrect! ' + old_num_1 + ' - ' + old_num_2 +
                ' is not ' + answer + '. Correct answer is ' + str(
                correct_answer))
            color = 'danger'
        return render(request, 'subtract.html', {'answer': answer,
            'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2, 'color':
            color})
    return render(request, 'subtract.html', {'num_1': num_1, 'num_2': num_2})


def multiply(request):
    num_1 = randint(0, 10)
    num_2 = randint(0, 10)
    if request.method == 'POST':
        answer = request.POST['answer']
        old_num_1 = request.POST['old_num_1']
        old_num_2 = request.POST['old_num_2']
        if not answer:
            my_answer = 'Please provide an input to the field.'
            color = 'danger'
            return render(request, 'multiply.html', {'answer': answer,
                'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2,
                'color': color})
        correct_answer = int(old_num_1) * int(old_num_2)
        if int(answer) == correct_answer:
            my_answer = ('Correct! ' + old_num_1 + ' x ' + old_num_2 +
                ' = ' + answer)
            color = 'info'
        else:
            my_answer = ('Incorrect! ' + old_num_1 + ' x ' + old_num_2 +
                ' is not ' + answer + '. Correct answer is ' + str(
                correct_answer))
            color = 'danger'
        return render(request, 'multiply.html', {'answer': answer,
            'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2, 'color':
            color})
    return render(request, 'multiply.html', {'num_1': num_1, 'num_2': num_2})


<mask token>

<mask token>


def home(request):
    return render(request, 'home.html', {})


def add(request):
    num_1 = randint(0, 10)
    num_2 = randint(0, 10)
    if request.method == 'POST':
        answer = request.POST['answer']
        old_num_1 = request.POST['old_num_1']
        old_num_2 = request.POST['old_num_2']
        if not answer:
            my_answer = 'Please provide an input to the field.'
            color = 'danger'
            return render(request, 'add.html', {'answer': answer,
                'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2,
                'color': color})
        correct_answer = int(old_num_1) + int(old_num_2)
        if int(answer) == correct_answer:
            my_answer = ('Correct! ' + old_num_1 + ' + ' + old_num_2 +
                ' = ' + answer)
            color = 'info'
        else:
            my_answer = ('Incorrect! ' + old_num_1 + ' + ' + old_num_2 +
                ' is not ' + answer + '. Correct answer is ' + str(
                correct_answer))
            color = 'danger'
        return render(request, 'add.html', {'answer': answer, 'my_answer':
            my_answer, 'num_1': num_1, 'num_2': num_2, 'color': color})
    return render(request, 'add.html', {'num_1': num_1, 'num_2': num_2})


def subtract(request):
    num_1 = randint(0, 10)
    num_2 = randint(0, 10)
    if request.method == 'POST':
        answer = request.POST['answer']
        old_num_1 = request.POST['old_num_1']
        old_num_2 = request.POST['old_num_2']
        if not answer:
            my_answer = 'Please provide an input to the field.'
            color = 'danger'
            return render(request, 'subtract.html', {'answer': answer,
                'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2,
                'color': color})
        correct_answer = int(old_num_1) - int(old_num_2)
        if int(answer) == correct_answer:
            my_answer = ('Correct! ' + old_num_1 + ' - ' + old_num_2 +
                ' = ' + answer)
            color = 'info'
        else:
            my_answer = ('Incorrect! ' + old_num_1 + ' - ' + old_num_2 +
                ' is not ' + answer + '. Correct answer is ' + str(
                correct_answer))
            color = 'danger'
        return render(request, 'subtract.html', {'answer': answer,
            'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2, 'color':
            color})
    return render(request, 'subtract.html', {'num_1': num_1, 'num_2': num_2})


def multiply(request):
    num_1 = randint(0, 10)
    num_2 = randint(0, 10)
    if request.method == 'POST':
        answer = request.POST['answer']
        old_num_1 = request.POST['old_num_1']
        old_num_2 = request.POST['old_num_2']
        if not answer:
            my_answer = 'Please provide an input to the field.'
            color = 'danger'
            return render(request, 'multiply.html', {'answer': answer,
                'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2,
                'color': color})
        correct_answer = int(old_num_1) * int(old_num_2)
        if int(answer) == correct_answer:
            my_answer = ('Correct! ' + old_num_1 + ' x ' + old_num_2 +
                ' = ' + answer)
            color = 'info'
        else:
            my_answer = ('Incorrect! ' + old_num_1 + ' x ' + old_num_2 +
                ' is not ' + answer + '. Correct answer is ' + str(
                correct_answer))
            color = 'danger'
        return render(request, 'multiply.html', {'answer': answer,
            'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2, 'color':
            color})
    return render(request, 'multiply.html', {'num_1': num_1, 'num_2': num_2})


def divide(request):
    num_1 = randint(0, 10)
    num_2 = randint(1, 10)
    if request.method == 'POST':
        answer = request.POST['answer']
        old_num_1 = request.POST['old_num_1']
        old_num_2 = request.POST['old_num_2']
        if not answer:
            my_answer = 'Please provide an input to the field.'
            color = 'danger'
            return render(request, 'divide.html', {'answer': answer,
                'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2,
                'color': color})
        correct_answer = int(old_num_1) / int(old_num_2)
        if float(answer) == correct_answer:
            my_answer = ('Correct! ' + old_num_1 + ' / ' + old_num_2 +
                ' = ' + answer)
            color = 'info'
        else:
            my_answer = ('Incorrect! ' + old_num_1 + ' / ' + old_num_2 +
                ' is not ' + answer + '. Correct answer is ' + str(
                correct_answer))
            color = 'danger'
        return render(request, 'divide.html', {'answer': answer,
            'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2, 'color':
            color})
    return render(request, 'divide.html', {'num_1': num_1, 'num_2': num_2})

from django.shortcuts import render
from random import randint


def home(request):
    return render(request, 'home.html', {})


def add(request):
    num_1 = randint(0, 10)
    num_2 = randint(0, 10)
    if request.method == 'POST':
        answer = request.POST['answer']
        old_num_1 = request.POST['old_num_1']
        old_num_2 = request.POST['old_num_2']
        if not answer:
            my_answer = 'Please provide an input to the field.'
            color = 'danger'
            return render(request, 'add.html', {'answer': answer,
                'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2,
                'color': color})
        correct_answer = int(old_num_1) + int(old_num_2)
        if int(answer) == correct_answer:
            my_answer = ('Correct! ' + old_num_1 + ' + ' + old_num_2 +
                ' = ' + answer)
            color = 'info'
        else:
            my_answer = ('Incorrect! ' + old_num_1 + ' + ' + old_num_2 +
                ' is not ' + answer + '. Correct answer is ' + str(
                correct_answer))
            color = 'danger'
        return render(request, 'add.html', {'answer': answer, 'my_answer':
            my_answer, 'num_1': num_1, 'num_2': num_2, 'color': color})
    return render(request, 'add.html', {'num_1': num_1, 'num_2': num_2})


def subtract(request):
    num_1 = randint(0, 10)
    num_2 = randint(0, 10)
    if request.method == 'POST':
        answer = request.POST['answer']
        old_num_1 = request.POST['old_num_1']
        old_num_2 = request.POST['old_num_2']
        if not answer:
            my_answer = 'Please provide an input to the field.'
            color = 'danger'
            return render(request, 'subtract.html', {'answer': answer,
                'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2,
                'color': color})
        correct_answer = int(old_num_1) - int(old_num_2)
        if int(answer) == correct_answer:
            my_answer = ('Correct! ' + old_num_1 + ' - ' + old_num_2 +
                ' = ' + answer)
            color = 'info'
        else:
            my_answer = ('Incorrect! ' + old_num_1 + ' - ' + old_num_2 +
                ' is not ' + answer + '. Correct answer is ' + str(
                correct_answer))
            color = 'danger'
        return render(request, 'subtract.html', {'answer': answer,
            'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2, 'color':
            color})
    return render(request, 'subtract.html', {'num_1': num_1, 'num_2': num_2})


def multiply(request):
    num_1 = randint(0, 10)
    num_2 = randint(0, 10)
    if request.method == 'POST':
        answer = request.POST['answer']
        old_num_1 = request.POST['old_num_1']
        old_num_2 = request.POST['old_num_2']
        if not answer:
            my_answer = 'Please provide an input to the field.'
            color = 'danger'
            return render(request, 'multiply.html', {'answer': answer,
                'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2,
                'color': color})
        correct_answer = int(old_num_1) * int(old_num_2)
        if int(answer) == correct_answer:
            my_answer = ('Correct! ' + old_num_1 + ' x ' + old_num_2 +
                ' = ' + answer)
            color = 'info'
        else:
            my_answer = ('Incorrect! ' + old_num_1 + ' x ' + old_num_2 +
                ' is not ' + answer + '. Correct answer is ' + str(
                correct_answer))
            color = 'danger'
        return render(request, 'multiply.html', {'answer': answer,
            'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2, 'color':
            color})
    return render(request, 'multiply.html', {'num_1': num_1, 'num_2': num_2})


def divide(request):
    num_1 = randint(0, 10)
    num_2 = randint(1, 10)
    if request.method == 'POST':
        answer = request.POST['answer']
        old_num_1 = request.POST['old_num_1']
        old_num_2 = request.POST['old_num_2']
        if not answer:
            my_answer = 'Please provide an input to the field.'
            color = 'danger'
            return render(request, 'divide.html', {'answer': answer,
                'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2,
                'color': color})
        correct_answer = int(old_num_1) / int(old_num_2)
        if float(answer) == correct_answer:
            my_answer = ('Correct! ' + old_num_1 + ' / ' + old_num_2 +
                ' = ' + answer)
            color = 'info'
        else:
            my_answer = ('Incorrect! ' + old_num_1 + ' / ' + old_num_2 +
                ' is not ' + answer + '. Correct answer is ' + str(
                correct_answer))
            color = 'danger'
        return render(request, 'divide.html', {'answer': answer,
            'my_answer': my_answer, 'num_1': num_1, 'num_2': num_2, 'color':
            color})
    return render(request, 'divide.html', {'num_1': num_1, 'num_2': num_2})

from django.shortcuts import render
from random import randint


# Create your views here.
def home(request):
    return render(request, 'home.html', {})


def add(request):
    num_1 = randint(0, 10)
    num_2 = randint(0, 10)

    if request.method == "POST":
        answer = request.POST['answer']
        old_num_1 = request.POST['old_num_1']
        old_num_2 = request.POST['old_num_2']

        # Error Handling if no input field
        if not answer:
            my_answer = "Please provide an input to the field."
            color = 'danger'
            return render(request, 'add.html', {
                'answer': answer,
                'my_answer': my_answer,
                'num_1': num_1,
                'num_2': num_2,
                'color': color,
            })

        correct_answer = int(old_num_1) + int(old_num_2)
        if int(answer) == correct_answer:
            my_answer = "Correct! " + old_num_1 + " + " + old_num_2 + " = " + answer
            color = "info"
        else:
            my_answer = "Incorrect! " + old_num_1 + " + " + old_num_2 + " is not " + answer + ". Correct answer is " + str(
                correct_answer)
            color = "danger"

        return render(request, 'add.html', {
            'answer': answer,
            'my_answer': my_answer,
            'num_1': num_1,
            'num_2': num_2,
            'color': color, })
    return render(request, 'add.html', {
        'num_1': num_1,
        'num_2': num_2,
    })


def subtract(request):
    num_1 = randint(0, 10)
    num_2 = randint(0, 10)

    if request.method == "POST":
        answer = request.POST['answer']
        old_num_1 = request.POST['old_num_1']
        old_num_2 = request.POST['old_num_2']

        # Error Handling if no input field
        if not answer:
            my_answer = "Please provide an input to the field."
            color = 'danger'
            return render(request, 'subtract.html', {
                'answer': answer,
                'my_answer': my_answer,
                'num_1': num_1,
                'num_2': num_2,
                'color': color,
            })

        correct_answer = int(old_num_1) - int(old_num_2)
        if int(answer) == correct_answer:
            my_answer = "Correct! " + old_num_1 + " - " + old_num_2 + " = " + answer
            color = "info"
        else:
            my_answer = "Incorrect! " + old_num_1 + " - " + old_num_2 + " is not " + answer + ". Correct answer is " + str(
                correct_answer)
            color = "danger"

        return render(request, 'subtract.html', {
            'answer': answer,
            'my_answer': my_answer,
            'num_1': num_1,
            'num_2': num_2,
            'color': color, })
    return render(request, 'subtract.html', {
        'num_1': num_1,
        'num_2': num_2,
    })


def multiply(request):
    num_1 = randint(0, 10)
    num_2 = randint(0, 10)

    if request.method == "POST":
        answer = request.POST['answer']
        old_num_1 = request.POST['old_num_1']
        old_num_2 = request.POST['old_num_2']

        # Error Handling if no input field
        if not answer:
            my_answer = "Please provide an input to the field."
            color = 'danger'
            return render(request, 'multiply.html', {
                'answer': answer,
                'my_answer': my_answer,
                'num_1': num_1,
                'num_2': num_2,
                'color': color,
            })

        correct_answer = int(old_num_1) * int(old_num_2)
        if int(answer) == correct_answer:
            my_answer = "Correct! " + old_num_1 + " x " + old_num_2 + " = " + answer
            color = "info"
        else:
            my_answer = "Incorrect! " + old_num_1 + " x " + old_num_2 + " is not " + answer + ". Correct answer is " + str(
                correct_answer)
            color = "danger"

        return render(request, 'multiply.html', {
            'answer': answer,
            'my_answer': my_answer,
            'num_1': num_1,
            'num_2': num_2,
            'color': color, })
    return render(request, 'multiply.html', {
        'num_1': num_1,
        'num_2': num_2,
    })


def divide(request):
    num_1 = randint(0, 10)
    num_2 = randint(1, 10)

    if request.method == "POST":
        answer = request.POST['answer']
        old_num_1 = request.POST['old_num_1']
        old_num_2 = request.POST['old_num_2']

        # Error Handling if no input field
        if not answer:
            my_answer = "Please provide an input to the field."
            color = 'danger'
            return render(request, 'divide.html', {
                'answer': answer,
                'my_answer': my_answer,
                'num_1': num_1,
                'num_2': num_2,
                'color': color,
            })

        correct_answer = int(old_num_1) / int(old_num_2)
        if float(answer) == correct_answer:
            my_answer = "Correct! " + old_num_1 + " / " + old_num_2 + " = " + answer
            color = "info"
        else:
            my_answer = "Incorrect! " + old_num_1 + " / " + old_num_2 + " is not " + answer + ". Correct answer is " + str(
                correct_answer)
            color = "danger"

        return render(request, 'divide.html', {
            'answer': answer,
            'my_answer': my_answer,
            'num_1': num_1,
            'num_2': num_2,
            'color': color, })
    return render(request, 'divide.html', {
        'num_1': num_1,
        'num_2': num_2,
    })
