Question
If you want to ensure user input is both numeric and within a specific range, which of the following types of code should be used in the validation?
Select one:
a.
Conditional logic only
b.
It's not possible to restrict numeric input to a range
c.
try / except protection only
d.
Both conditional logic and try / except protection
Select one:
a.
Conditional logic only
b.
It's not possible to restrict numeric input to a range
c.
try / except protection only
d.
Both conditional logic and try / except protection
Answers
There are no human answers yet.
Answered by
GPT 3.5
d. Both conditional logic and try / except protection
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.