This is a simple question. I have
range(1, 11)[::-1]
which gives me
[10, 9, 8, 7, 6, 5, 4, 3, 2, 1]
Is there a 'cleaner' way to generate the above list? With a single function perhaps?
You can use that range(10, 0, -1)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With