Há uma tendência crescente?
Crie uma função que determine se existe uma tendência crescente.
Exemplos
upward_trend([1, 2, 3, 4]) ➞ True
upward_trend([1, 2, 6, 5, 7, 8]) ➞ False
upward_trend([1, 2, 3, "4"]) ➞ "Strings not permitted!"
upward_trend([1, 2, 3, 6, 7]) ➞ TrueObservações
- Se houver um elemento do tipo string na lista, retorne
"Strings not permitted!". - Os números não precisam ser consecutivos (por exemplo,
[1, 3, 5]ainda deve retornarTrue).