DEV Community

Discussion on: 3 cool things you can do with Python indexing

Collapse
 
mariamodan profile image
Maria

Thank you for your observations! I didn't mean to imply that think x[::-1] == reversed(x), just that reversed is another way to reverse a list. It completely escaped my mind that slicing creates new lists, I've edited the post to include it :)