I have to do a function and I am not able to develop logic. It is as follows:
Write the remove_repetitions function that receives a list of integers as a parameter, checks to see if such a list has repeated elements, and removes them. The function should return a list corresponding to the first list, without repeated elements. The returned list must be sorted.
Tip: You can use lista.sort()
or sorted(lista)
.