Mar-09-2017, 02:50 PM
Probably not what you're looking for, but howz about:
orig_num = [1, 2, 3, 4, 5] list.sort(orig_num, reverse=True) print("Reversed number = {}".format(orig_num))
Output:Reversed number = [5, 4, 3, 2, 1]
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition