Skip to content

Instantly share code, notes, and snippets.

@mklemersson
Created April 16, 2017 04:14
Show Gist options
  • Save mklemersson/4db1074fbeb3b074e42c95055831a10b to your computer and use it in GitHub Desktop.
Save mklemersson/4db1074fbeb3b074e42c95055831a10b to your computer and use it in GitHub Desktop.
python - desafio argumentador
# 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