from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.

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


def ammount(request):
    n1 = int(request.POST["num1"])
    n2 = int(request.POST["num2"])
    addition = n1 + n2
    return render(request, 'result.html', {'result': addition})
def add(request):
    n1 = int(request.POST["num1"])
    n2 = int(request.POST["num2"])
    addition = n1+n2

    return render(request, 'result.html',{'result':addition})

from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.

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


def ammount(request):
    n1 = int(request.POST["num1"])
    n2 = int(request.POST["num2"])
    addition = n1 + n2
    return render(request, 'result.html', {'result': addition})
def add(request):
    n1 = int(request.POST["num1"])
    n2 = int(request.POST["num2"])
    addition = n1+n2

    return render(request, 'result.html',{'result':addition})

# Create your views here.