during testing on postman TypeError: int() argument must be a string, a bytes-like object or a number, not ‘NoneType’ is coming

Solution
request.form.get('number', 1)
from flask_api import status
...

try:
   number1=int(request.form['number1'])
   number2=int(request.form['number2'])
   ...
except KeyError:
   return "Invalid Input", status.HTTP_400_BAD_REQUEST