Created
April 16, 2017 04:14
-
-
Save mklemersson/4db1074fbeb3b074e42c95055831a10b to your computer and use it in GitHub Desktop.
python - desafio argumentador
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# define a funcao resolver | |
def resolver(argumento): | |
# verifica se a o texto/string informado nao e vazio e | |
# se o primeiro caractere e igual a '<' e o ultimo igual a '>' | |
return argumento.strip() != '' and (argumento[0] == '<' and argumento[-1] == '>') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment