Answer the question
In order to leave comments, you need to log in
How to do data type checking?
I have an input and it should only receive int data type. If you entered not int, then he should ask you to enter int data.
Answer the question
In order to leave comments, you need to log in
int - 4 bytes, positive value. If stupid, then (<=0 and lenght(input operand) > 4), where lenght is the byte count function.
You invited me as a tag expert (which is strange, not my area)
But I know the answer: the validator depends on your library or framework.
For Flask: flask.pocoo.org/docs/1.0/patterns/wtforms
For Django: https://docs.djangoproject.com/en/2.2/ref/forms/va...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question