0
I need to create a program where in the given list, if the name is repeated it puts a numbering. For example: names = [maria, Joao, maria] the result should be result = [maria, Joao, maria1]
Other example: names = [Eduardo, Joao, Eduardo, Eduardo] result = [Eduardo, Joao, eduardo1, eduardo2]
I put together a code that compares with the next name, I don’t know how to continue the comparison.
follows my code:
Welcome Tatiane, you can be more specific? Edith the question and give some practical example or put part of your code.
– Luiz Augusto