Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • you can just look into .reverse. It does not return anything or returns none. .reverse reverses the list in place. Commented Oct 26, 2018 at 0:38
  • Also, you can look into comparison of different reverse methods in stackoverflow.com/a/3705705/5916727 Commented Oct 26, 2018 at 0:51