filmov
tv
In Python, Sorting a Tuple always return List #shorts
Показать описание
A tuple is a data type for immutable ordered sequences of elements. To sort elements of a tuple, we can use the sorted function, providing the tuple as the first argument. This function returns a sorted list from the given iterable, and we can easily convert this list into a tuple using the built-in function tuple.
#Shorts #Python #iteration #list #tuple #youtubeshorts
#Shorts #Python #iteration #list #tuple #youtubeshorts