How can you produce the following list with range() in Python?
range()
[9, 8, 7, 6, 5, 4, 3, 2, 1, 0]
You could use range(10)[::-1] which is the same thing as range(9, -1, -1) and arguably more readable (if you're familiar with the common sequence[::-1] Python idiom).
range(10)[::-1]
range(9, -1, -1)
sequence[::-1]