I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
Instead of doing range(1,6)[::-1] you can pass a negative step into the function itself like range(5,0,-1) which might be more readable depending on the context.
Instead of doing
range(1,6)[::-1]
you can pass a negative step into the function itself likerange(5,0,-1)
which might be more readable depending on the context.That is much more readable. Thank you for your insight!