0
I’m trying to create a function that has as input a list. The function calculates the number of characters of each component of the list and returns another list of numbers. After that would have to put in ascending order the first list.
textos = ["casa", "mamamia", "jejum", "girimum"]
def calcula_assinatura(palavra):
x = len(palavra)
return x
def verifica_assinatura(textos):
assinatura = []
for i in range (0,len(textos)):
calcula_assinatura(i)
assinatura = assinaura.append[i]
x = assinatura.sort()
return x
Look at the duplicate that was suggested above, as I understand it is what you want. If that’s not what you need, you can [Dit] the question explaining which result you want
– hkotsubo
really that was it, the way I was doing, I was writing a lot of code. thank you very much for the help even.
– bruno boff
Hello Brunno, if you have managed to solve your problem, I ask you to mark the question as solved, in the symbol 'v' in the answer you answered, so that it is recorded that this question has already been solved. Thank you.
– Robson Silva