This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.
JavaScript algorithmsartificial-intelligencebugbountycryptographycyber-threat-intelligencecybersecurity-projectsethical-hackinghacking-toolsmalwarenessusnetwork-monitoringnetwork-securitynmapportscannerpythonpythonprojectsthreat-intelligencevirus-scanning
title: Python sorted() built-in function - Python Cheatsheet description: Return a new sorted list from the items in iterable.
Python sorted() built-in function From the Python 3 documentation Return a new sorted list from the items in iterable.Examples
>>> sorted([1, 2, 3, 7, 4])
# [1, 2, 3, 4, 7]
>>> sorted(['a', 'h', 'e'])
# ['a', 'e', 'h']
>>> sorted([1, 2, 3, 7, 4], reverse=True)
# [7, 4, 3, 2, 1]
>>> sorted(['a', 'h', 'e'], reverse=True)
# ['h', 'e', 'a']