reverse() method in Python List

It is a method in list that reverses the original list. The items of the list are reversed. It doesn’t return a value rather it modifies the original list. Syntax: list_name.reverse() Let’s make it clear by observing some simple examples: Example 1 Output:[52, 45, 33, 9, 7, 9, 2] Explanation:Here the elements are in reversed […]

reverse() method in Python List Read More »