Presença Global

Plataforma Disponível 24/7

evalart@evalart.com

Share with:


Desculpe-nos, mas este texto está apenas disponível em Inglês Americano y Espanhol Europeu. For the sake of viewer convenience, the content is shown below in this site default language. You may click one of the links to switch the site language to another available language.

No, you should not write any validation unless the question explicitly requests it. For example, if a question says to print the first n prime numbers and the predefined code includes something like:

n = 5

Then it is not necessary to validate that n is a number or that n is greater than zero unless the question explicitly indicates that some kind of validation should be applied.