Sort without duplicates

Write a function sort_no_dup that receives a list of integers, possibly including repeated entries, and returns a sorted list with the same integers without any repetition.

Input

The function receives a list of integers as a parameter.

Output

The function returns as a result a list of integers sorted and without duplicate elements.

Observation

You are allowed to use any predefined Python function or data structure you deem appropriate.

You only need to provide the function. Remember not to include doctest calls or any other main program in your submission.

Problem information

Author: ProAl

Generation: 2026-01-25T17:39:30.380Z

© Jutge.org, 2006–2026.
https://jutge.org