arr = [1, 2, 3, 4, 5, 6]
sorting_reverse = sorted(arr, reverse = True)
print(sorting_reverse)
arr = sorted(arr)
print(arr)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
arr = [1, 2, 3, 4, 5, 6]
sorting_reverse = sorted(arr, reverse = True)
print(sorting_reverse)
arr = sorted(arr)
print(arr)